Skip to content

RFC VFS based Union Mount (V2)

Jan Blunck linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest25 of 26 patches 38 repliesIn review

25 of 26 patches are in this archive. The cover letter announces 26.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
2/26VFS: Export dput_path() and path_to_nameidata()fs/namei.c include/linux/namei.h+15 -160 replies
3/26VFS: Make lookup_hash() return a struct pathfs/namei.c+57 -560 replies
4/26VFS: Make lookup_create() return a struct patharch/powerpc/platforms/cell/spufs/inode.c fs/namei.c include/linux/dcache.h +2 more+50 -590 replies
5/26VFS: cache_lookup() cleanupfs/namei.c+4 -90 replies
6/26VFS: Make real_lookup() return a struct pathfs/namei.c+48 -290 replies
7/26VFS: Introduce dput() variante that maintains a kill-listfs/dcache.c+55 -50 replies
8/26VFS: Export lives_below_in_same_fs()fs/namespace.c include/linux/mount.h+3 -10 replies
9/26linux/stat.h: Add the filetype white-outinclude/linux/stat.h+2 -00 replies
10/26VFS white-out handlingfs/inode.c fs/namei.c fs/readdir.c +1 more+441 -110 replies
11/26tmpfs white-out supportinclude/linux/shmem_fs.h mm/shmem.c+55 -02 replies
12/26ext2 white-out supportfs/ext2/dir.c fs/ext2/namei.c fs/ext2/super.c +1 more+28 -129 replies
13/26ext3 whiteout supportfs/ext3/dir.c fs/ext3/namei.c fs/ext3/super.c +1 more+43 -30 replies
14/26union-mount: DocumentationDocumentation/filesystems/union-mounts.txt+172 -00 replies
15/26union-mount: Add union-mount mount flagfs/namespace.c include/linux/fs.h include/linux/mount.h+7 -10 replies
16/26union-mount: Introduce union_mount structurefs/Kconfig fs/Makefile fs/dcache.c +3 more+419 -01 reply
17/26union-mount: Drive the union cache via dcachefs/dcache.c fs/union.c include/linux/dcache.h +1 more+94 -00 replies
18/26union-mount: Changes to the namespace handlingfs/namespace.c fs/union.c include/linux/mount.h +1 more+110 -21 reply
19/26union-mount: Make lookup work for union-mounted file systemsfs/namei.c include/linux/namei.h+465 -81 reply
20/26union-mount: Simple union-mount readdir implementationfs/readdir.c fs/union.c include/linux/union.h+364 -81 reply
21/26union-mount: in-kernel file copy between union mounted filesystemsfs/namei.c fs/union.c include/linux/union.h+389 -50 replies
22/26union-mount: white-out changes for copy-on-openfs/namei.c+44 -20 replies
23/26union-mount: copyup on renamefs/namei.c fs/union.c+129 -120 replies
24/26union-mount: dont report EROFS for union mountsfs/open.c+1 -10 replies
25/26union-mount: Debug Infrastructureinclude/linux/union_debug.h lib/Kconfig.debug lib/Makefile +1 more+370 -00 replies
26/26union-mount: Debug codefs/namei.c fs/union.c include/linux/namei.h+57 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC 00/26] VFS based Union Mount (V2)

Here is another post of the VFS based union mount implementation. Unlike the traditional mount which hides the contents of the mount point, union mounts present the merged view of the mount point and the mounted filesytem.

Recent changes:
- brand new union structure no longer tied to the dentryn, now works with bind mounts
- generic part of the whiteout patches extracted
- introduces MS_WHITEOUT to make the white-out patches independant of the union-mount stuff
- uses a singleton whiteout inode for the tmpfs filesystem (I need to fix this for ext2/3, too)
- renaming files on unions uses copyup now
- rewrote the union mount debugging code: it is now debugfs/relay based.
- random cleanups

I'm able to compile the kernel with this patches applied on a 3 layer union mount with the seperate layers bind mounted to different locations. I haven't done any performance tests since I think there is a more important topic
ahead: better readdir() support.

This series is against 2.6.22-rc6-mm1.

Comments are welcome,
Jan