linux/fs/overlayfs
Chandan Rajendra ba1e563cdc ovl: return anonymous st_dev for lower inodes
For non-samefs setup, to make sure that st_dev/st_ino pair is unique
across the system, we return a unique anonymous st_dev for stat(2)
of lower layer inode.

A following patch is going to fix constant st_dev/st_ino across copy up
by returning origin st_dev/st_ino for copied up objects.

If the st_dev/st_ino for copied up object would have been the same as
that of the real underlying lower file, running diff on underlying lower
file and overlay copied up file would result in diff reporting that the
2 files are equal when in fact, they may have different content.

[amir: simplify ovl_get_pseudo_dev()
       split from allocate anonymous bdev patch]

Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2017-11-09 10:23:27 +01:00
..
copy_up.c ovl: move include of ovl_entry.h into overlayfs.h 2017-11-09 10:23:27 +01:00
dir.c ovl: fix rmdir problem on non-merge dir with origin xattr 2017-11-09 10:23:27 +01:00
inode.c ovl: return anonymous st_dev for lower inodes 2017-11-09 10:23:27 +01: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
namei.c ovl: re-structure overlay lower layers in-memory 2017-11-09 10:23:27 +01:00
overlayfs.h ovl: re-structure overlay lower layers in-memory 2017-11-09 10:23:27 +01:00
ovl_entry.h ovl: allocate anonymous devs for lowerdirs 2017-11-09 10:23:27 +01:00
readdir.c ovl: re-structure overlay lower layers in-memory 2017-11-09 10:23:27 +01:00
super.c ovl: allocate anonymous devs for lowerdirs 2017-11-09 10:23:27 +01:00
util.c ovl: re-structure overlay lower layers in-memory 2017-11-09 10:23:27 +01:00