linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to cope with two incompatible overlayfs formats out in the wild
@ 2014-11-18 14:28 Miklos Szeredi
  2014-11-18 17:07 ` Andy Whitcroft
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Miklos Szeredi @ 2014-11-18 14:28 UTC (permalink / raw)
  To: Andy Whitcroft
  Cc: Serge Hallyn, Neil Brown, linux-unionfs, Kernel Mailing List,
	Linus Torvalds, Al Viro

[CC-ing mailing lists, Al and Linus for wider exposure]

This issue is this: Ubuntu and SUSE carry an "old" format of overlayfs
while mainline has a "new" format.  The differences are:

 - whiteouts are represented differently (symlink + xattr in the old
format, chardev in the new)

 - new one needs a "workdir" mount option, which points to a directory
on the same filesystem as upperdir.  If upperdir was the root of the
filesystem then it needs to be moved into a subdir to make space for
the work directory.

Migrating from old to new is not a big issue, but Ubuntu people have
expressed concerns about systems with mixed kernel versions and want
to support the old format alongside the new.

This can all be done with out-of-tree code.

So from mainline we need two things:

  - when mounting distinguish between old and new format.

  - userspace can detect which formats are supported by the kernel.

If we'd have a different filesystem type for the old and new formats,
then that would solve both (checking /proc/filesystems would indicate
which one is supported).

Unfortunately that would mean having to change "overlayfs" type to
something else in 3.18.  Question is, is there some sane name which
would fit?  "overlayfs2" is perhaps the best, but I'm not overly
enthusiastic about it.

Any other ideas?

Thanks,
Miklos

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-11-19 14:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-18 14:28 How to cope with two incompatible overlayfs formats out in the wild Miklos Szeredi
2014-11-18 17:07 ` Andy Whitcroft
2014-11-19  1:59 ` Al Viro
2014-11-19  8:19   ` Miklos Szeredi
2014-11-19 14:29 ` Miklos Szeredi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).