]> asedeno.scripts.mit.edu Git - linux.git/commit
ovl: decode pure lower dir file handles
authorAmir Goldstein <amir73il@gmail.com>
Wed, 17 Jan 2018 20:32:44 +0000 (22:32 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 24 Jan 2018 10:26:04 +0000 (11:26 +0100)
commit988925164f659bf74061d3036e14873753c937d2
tree11df4a932966fa87834ad7f859f9aaffcdf509b0
parent3b0bfc6ed3c434800e5eacfb6cdbe45c07c270e1
ovl: decode pure lower dir file handles

Similar to decoding a pure upper dir file handle, decoding a pure lower
dir file handle is implemented by looking an overlay dentry of the same
path as the pure lower path and verifying that the overlay dentry's
real lower matches the decoded real lower file handle.

Unlike the case of upper dir file handle, the lookup of overlay path by
lower real path can fail or find a mismatched overlay dentry if any of
the lower parents have been copied up and renamed. To address this case
we will need to check if any of the lower parents are indexed.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/export.c