]> git.baikalelectronics.ru Git - kernel.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)
commit88e8d86c9574d7b85731b836d30348988ae93ac4
tree11df4a932966fa87834ad7f859f9aaffcdf509b0
parent34348099a27e508d16aa3959f5f17ceb243fb153
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