kernel_optimize_test/fs/overlayfs
Amir Goldstein 72b608f085 ovl: constant st_ino/st_dev across copy up
When all layers are on the same underlying filesystem, let stat(2) return
st_dev/st_ino values of the copy up origin inode if it is known.

This results in constant st_ino/st_dev representation of files in an
overlay mount before and after copy up.

When the underlying filesystem support NFS exportfs, the result is also
persistent st_ino/st_dev representation before and after mount cycle.

Lower hardlinks are broken on copy up to different upper files, so we
cannot use the lower origin st_ino for those different files, even for the
same fs case.

When all overlay layers are on the same fs, use overlay st_dev for non-dirs
to get the correct result from du -x.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2017-05-05 11:38:58 +02:00
..
copy_up.c ovl: store file handle of lower inode on copy up 2017-05-05 11:38:58 +02:00
dir.c ovl: persistent inode number for directories 2017-05-05 11:38:58 +02:00
inode.c ovl: constant st_ino/st_dev across copy up 2017-05-05 11:38:58 +02:00
Kconfig ovl: allow redirect_dir to default to "on" 2016-12-16 11:02:57 +01:00
Makefile ovl: split super.c 2016-12-16 11:02:56 +01:00
namei.c ovl: lookup non-dir copy-up-origin by file handle 2017-05-05 11:38:58 +02:00
overlayfs.h ovl: set the ORIGIN type flag 2017-05-05 11:38:58 +02:00
ovl_entry.h ovl: check if all layers are on the same fs 2017-05-05 11:38:57 +02:00
readdir.c ovl: proper cleanup of workdir 2016-09-01 11:11:59 +02:00
super.c ovl: check if all layers are on the same fs 2017-05-05 11:38:57 +02:00
util.c ovl: set the ORIGIN type flag 2017-05-05 11:38:58 +02:00