linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 0/5] union-directory implementation
@ 2009-05-21  9:22 Miklos Szeredi
  2009-05-21  9:22 ` [patch 1/5] union-directory: Introduce MNT_UNION and MS_UNION flags Miklos Szeredi
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Miklos Szeredi @ 2009-05-21  9:22 UTC (permalink / raw)
  To: linux-fsdevel, linux-kernel; +Cc: jblunck, bharata, vaurora, viro

This patchset implements the simplest form of union mounts (called
union directories here).  This is somewhat similar to Plan9 union
mounts.  The patches are derived from Jan Blunck's work.

Also available from git:
  git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git union-dir

Features:

 - top level directory unification only
 - no copy up
 - no whiteouts, opaque dir, etc...
 - create/rename/unlink only work on top layer
 - write works on any layer (without copy up)
 - directory entry deduplication in kernel
 - supports directory seeking (that hell from POSIX)

Shortcomings:

 - directory reading is O(n^2), needs optimization
 - weird create/unlink semantics due to ignoring union

I'm posting these patches in a hope that

 a) they may be useful on their own (after further development),
 b) they may help with the full fledged union-mount implementation

Comments?

Thanks,
Miklos
--

Jan Blunck (5):
      union-directory: Introduce MNT_UNION and MS_UNION flags
      union-directory: Support for traversing the layers of a union-directory
      union-directory: Some checks during namespace changes
      union-directory: Make lookup continue in overlayed directories
      union-directory: Simple union-mount readdir implementation

---
 fs/Kconfig            |    8 ++
 fs/Makefile           |    2 +
 fs/file_table.c       |    1 +
 fs/namei.c            |   49 +++++++++++
 fs/namespace.c        |   25 +++++-
 fs/readdir.c          |   21 +++--
 fs/union.c            |  229 +++++++++++++++++++++++++++++++++++++++++++++++++
 fs/union.h            |   26 ++++++
 include/linux/fs.h    |   18 ++++
 include/linux/mount.h |    1 +
 10 files changed, 369 insertions(+), 11 deletions(-)
 create mode 100644 fs/union.c
 create mode 100644 fs/union.h

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

end of thread, other threads:[~2009-05-21  9:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-21  9:22 [patch 0/5] union-directory implementation Miklos Szeredi
2009-05-21  9:22 ` [patch 1/5] union-directory: Introduce MNT_UNION and MS_UNION flags Miklos Szeredi
2009-05-21  9:22 ` [patch 2/5] union-directory: Support for traversing the layers of a union-directory Miklos Szeredi
2009-05-21  9:22 ` [patch 3/5] union-directory: Some checks during namespace changes Miklos Szeredi
2009-05-21  9:22 ` [patch 4/5] union-directory: Make lookup continue in overlayed directories Miklos Szeredi
2009-05-21  9:22 ` [patch 5/5] union-directory: Simple union-mount readdir implementation Miklos Szeredi
2009-05-21  9:56 ` [patch 0/5] union-directory implementation 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).