linux/fs/overlayfs
Miklos Szeredi 3ee23ff102 ovl: check lower existence of rename target
Check if something exists on the lower layer(s) under the target or rename
to decide if directory needs to be marked "opaque".

Marking opaque is done before the rename, and on failure the marking was
undone.  Also the opaque xattr was removed if the target didn't cover
anything.

This patch changes behavior so that removal of "opaque" is not done in
either of the above cases.  This means that directory may have the opaque
flag even if it doesn't cover anything.  However this shouldn't affect the
performance or semantics of the overalay, while simplifying the code.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2016-12-16 11:02:55 +01:00
..
copy_up.c ovl: use vfs_clone_file_range() for copy up if possible 2016-12-16 11:02:54 +01:00
dir.c ovl: check lower existence of rename target 2016-12-16 11:02:55 +01:00
inode.c ovl: treat special files like a regular fs 2016-12-16 11:02:55 +01:00
Kconfig ovl: rename filesystem type to "overlay" 2014-11-20 16:39:59 +01:00
Makefile ovl: rename filesystem type to "overlay" 2014-11-20 16:39:59 +01:00
overlayfs.h ovl: rename: simplify handling of lower/merged directory 2016-12-16 11:02:55 +01:00
readdir.c ovl: proper cleanup of workdir 2016-09-01 11:11:59 +02:00
super.c ovl: get rid of PURE type 2016-12-16 11:02:55 +01:00