linux/fs/overlayfs
Miklos Szeredi a6c6065511 ovl: redirect on rename-dir
Current code returns EXDEV when a directory would need to be copied up to
move.  We could copy up the directory tree in this case, but there's
another, simpler solution: point to old lower directory from moved upper
directory.

This is achieved with a "trusted.overlay.redirect" xattr storing the path
relative to the root of the overlay.  After such attribute has been set,
the directory can be moved without further actions required.

This is a backward incompatible feature, old kernels won't be able to
correctly mount an overlay containing redirected directories.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2016-12-16 11:02:56 +01:00
..
copy_up.c ovl: redirect on rename-dir 2016-12-16 11:02:56 +01:00
dir.c ovl: redirect on rename-dir 2016-12-16 11:02:56 +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: split super.c 2016-12-16 11:02:56 +01:00
namei.c ovl: lookup redirects 2016-12-16 11:02:56 +01:00
overlayfs.h ovl: redirect on rename-dir 2016-12-16 11:02:56 +01:00
ovl_entry.h ovl: redirect on rename-dir 2016-12-16 11:02:56 +01:00
readdir.c ovl: proper cleanup of workdir 2016-09-01 11:11:59 +02:00
super.c ovl: redirect on rename-dir 2016-12-16 11:02:56 +01:00
util.c ovl: redirect on rename-dir 2016-12-16 11:02:56 +01:00