]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: add whiteout support
authorMiklos Szeredi <mszeredi@suse.cz>
Thu, 23 Oct 2014 22:14:36 +0000 (00:14 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Thu, 23 Oct 2014 22:14:36 +0000 (00:14 +0200)
commit807e2d30d9e9d14aafba32ee9a1a217bef69cfc3
treefde11fbe9f87e95ef6078fcbfed5f55c9ba134f8
parentdd363a9a17328210f279b6215791f0e824a6b720
vfs: add whiteout support

Whiteout isn't actually a new file type, but is represented as a char
device (Linus's idea) with 0/0 device number.

This has several advantages compared to introducing a new whiteout file
type:

 - no userspace API changes (e.g. trivial to make backups of upper layer
   filesystem, without losing whiteouts)

 - no fs image format changes (you can boot an old kernel/fsck without
   whiteout support and things won't break)

 - implementation is trivial

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/namei.c
include/linux/fs.h