aboutsummaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/copy_up.c
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2017-06-21 08:28:37 -0400
committerMiklos Szeredi <mszeredi@redhat.com>2017-07-04 16:03:17 -0400
commit8b88a2e6403638b56556ed5b1c60d9318eefea9c (patch)
treec15c850ac2640fb933e393bfb38fdc30d2f73bd2 /fs/overlayfs/copy_up.c
parent02bcd1577400b0b2eab806ccb9f72d6b5ec7bcca (diff)
ovl: verify upper root dir matches lower root dir
When inodes index feature is enabled, verify that the file handle stored in upper root dir matches the lower root dir or fail to mount. If upper root dir has no stored file handle, encode and store the lower root dir file handle in overlay.origin xattr. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/copy_up.c')
-rw-r--r--fs/overlayfs/copy_up.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/overlayfs/copy_up.c b/fs/overlayfs/copy_up.c
index f9f51cce3c18..42807cb57da0 100644
--- a/fs/overlayfs/copy_up.c
+++ b/fs/overlayfs/copy_up.c
@@ -233,7 +233,7 @@ int ovl_set_attr(struct dentry *upperdentry, struct kstat *stat)
233 return err; 233 return err;
234} 234}
235 235
236static struct ovl_fh *ovl_encode_fh(struct dentry *lower) 236struct ovl_fh *ovl_encode_fh(struct dentry *lower)
237{ 237{
238 struct ovl_fh *fh; 238 struct ovl_fh *fh;
239 int fh_type, fh_len, dwords; 239 int fh_type, fh_len, dwords;