]> 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)
commit9fafc1f08428b2bef67433c93f1e41ab03ed5f54
treefde11fbe9f87e95ef6078fcbfed5f55c9ba134f8
parent67f3c0832547d58c5ab5760ede25791dbb5ea6df
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