Whamcloud - gitweb
LU-15170 llite: Switch pcc to lookup_one_len
Using kern_path to lookup files in the PCC cache means we
are subject to user namespaces, so the PCC volume must be
mapped in to a container or the cached files cannot be
found.
One solution is to switch to using lookup_one_len - this is
what the code which *creates* PCC files does. This
manually walks the path from the root, which avoids
namespace issues.
This is appropriate because PCC is kernel functionality -
the user should not be able to directly access the volume,
but it should be accessible as a cache.
Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: Idd15574ace29543bed1a9937cb35404781714791