linux_old1/fs/overlayfs
Amir Goldstein 59be09712a ovl: implement index dir copy up
Implement a copy up method for non-dir objects using index dir to
prevent breaking lower hardlinks on copy up.

This method requires that the inodes index dir feature was enabled and
that all underlying fs support file handle encoding/decoding.

On the first lower hardlink copy up, upper file is created in index dir,
named after the hex representation of the lower origin inode file handle.
On the second lower hardlink copy up, upper file is found in index dir,
by the same lower handle key.
On either case, the upper indexed inode is then linked to the copy up
upper path.

The index entry remains linked for future lower hardlink copy up and for
lower to upper inode map, that is needed for exporting overlayfs to NFS.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2017-07-04 22:03:19 +02:00
..
Kconfig ovl: introduce the inodes index dir feature 2017-07-04 22:03:17 +02:00
Makefile ovl: split super.c 2016-12-16 11:02:56 +01:00
copy_up.c ovl: implement index dir copy up 2017-07-04 22:03:19 +02:00
dir.c ovl: add flag for upper in ovl_entry 2017-07-04 22:03:18 +02:00
inode.c ovl: implement index dir copy up 2017-07-04 22:03:19 +02:00
namei.c ovl: add flag for upper in ovl_entry 2017-07-04 22:03:18 +02:00
overlayfs.h ovl: add flag for upper in ovl_entry 2017-07-04 22:03:18 +02:00
ovl_entry.h ovl: add flag for upper in ovl_entry 2017-07-04 22:03:18 +02:00
readdir.c ovl: cleanup bad and stale index entries on mount 2017-07-04 22:03:17 +02:00
super.c ovl: add flag for upper in ovl_entry 2017-07-04 22:03:18 +02:00
util.c ovl: implement index dir copy up 2017-07-04 22:03:19 +02:00