aboutsummaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/overlayfs.h
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2017-04-24 00:25:49 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2017-05-05 11:38:58 +0200
commit72b608f08528458334218a809d66ea94d924c378 (patch)
tree759ba4c56e36ceaa58e23d5e63bf461f20c868a3 /fs/overlayfs/overlayfs.h
parentovl: persistent inode number for directories (diff)
downloadlinux-dev-72b608f08528458334218a809d66ea94d924c378.tar.xz
linux-dev-72b608f08528458334218a809d66ea94d924c378.zip
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>
Diffstat (limited to 'fs/overlayfs/overlayfs.h')
0 files changed, 0 insertions, 0 deletions