diff options
author | Amir Goldstein <amir73il@gmail.com> | 2017-04-24 00:25:49 +0300 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2017-05-05 12:38:58 +0300 |
commit | 72b608f08528458334218a809d66ea94d924c378 (patch) | |
tree | 759ba4c56e36ceaa58e23d5e63bf461f20c868a3 /kernel/locking/rtmutex-debug.c | |
parent | b7a807dc2010334e62e0afd89d6f7a8913eb14ff (diff) | |
download | linux-72b608f08528458334218a809d66ea94d924c378.tar.xz |
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 'kernel/locking/rtmutex-debug.c')
0 files changed, 0 insertions, 0 deletions