Skip to content

RFC VFS based Union Mount(v1)

Bharata B Rao linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest14 patches 45 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14Add union mount documentationDocumentation/union-mounts.txt+538 -00 replies
2/14Add a new mount flag (MNT_UNION) for union mountfs/namespace.c include/linux/fs.h include/linux/mount.h+16 -14 replies
3/14Add the whiteout file typeinclude/linux/stat.h+2 -02 replies
4/14Add config options for union mountfs/Kconfig include/linux/union_debug.h+92 -00 replies
5/14Introduce union stackfs/Makefile fs/dcache.c fs/union.c +2 more+314 -09 replies
6/14Union-mount dentry reference countingfs/dcache.c fs/dnotify.c fs/inotify.c +10 more+537 -361 reply
7/14Union-mount mountingfs/namespace.c fs/union.c include/linux/fs.h +1 more+190 -72 replies
8/14Union-mount lookupfs/dcache.c fs/namei.c fs/namespace.c +4 more+786 -116 replies
9/14Union-mount readdirfs/aio.c fs/file_table.c fs/read_write.c +4 more+475 -92 replies
10/14In-kernel file copy between union mounted filesystemsfs/namei.c fs/union.c include/linux/namei.h +1 more+476 -18 replies
11/14VFS whiteout handlingfs/inode.c fs/namei.c fs/readdir.c +3 more+605 -121 reply
12/14ext2 whiteout supportfs/ext2/dir.c fs/ext2/namei.c fs/ext2/super.c +1 more+33 -11 reply
13/14ext3 whiteout supportfs/ext3/dir.c fs/ext3/namei.c fs/ext3/super.c +1 more+72 -86 replies
14/14tmpfs whiteout supportmm/shmem.c+8 -13 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC][PATCH 0/14] VFS based Union Mount(v1)

Here is another post of vfs based union mount implementation. Union mount provides the filesytem namespace unification feature. Unlike the traditional mounts which hide the contents of the mount point, the union mount presents the merged view of the mount point and the mounted filesytem.

These patches were originally by Jan Blunck. The current patches are for 2.6.21-mm1. The main change from the previous post is a different implementation of union mount readdir which is heavily inspired by the unionfs' implementation. The earlier version had two serious drawbacks: It worked only for filesystems which had flat file directories and it used to build and destroy readdir cache for every readdir() call. This version has addressed both of these shortcomings.

The code is still in an experimental stage and the intention of posting this now is to get some initial feedback about the design and the future directions about how this should be taken forward.

You can find more details about union mount in the documentation included in the patchset.

Kindly review and let us know your comments.

Regards,
Bharata.