]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: add ceph_ll_lookup_vino
authorJeff Layton <jlayton@redhat.com>
Mon, 1 Feb 2021 16:04:07 +0000 (11:04 -0500)
committerNathan Cutler <ncutler@suse.com>
Wed, 26 May 2021 12:20:21 +0000 (14:20 +0200)
commitfb65f530001699d7be799c0dfe4407059aadb1ef
treee10c5b504be3487e58cdfe6fa48e4dc84c5cce3a
parent08cc9e3f41a020fd329ec5b2ea993315170bd949
client: add ceph_ll_lookup_vino

Add a new API function for looking up an inode via a vinodeno_t. This
should give ganesha a way to reliably look up snapshot inodes.

We do need to add some special handling for CEPH_SNAPDIRs. If we're
looking for one, then find the non-snapped parent, and then call
open_snapdir to get the snapdir inode.

Also, have the function check the local cache before calling the MDS
to look up an inode.

Fixes: https://tracker.ceph.com/issues/48991
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 70622079c2ec55222a139fa5042902e0b19bd839)

Conflicts:
src/client/Client.cc
src/client/Client.cc
src/client/Client.h
src/include/cephfs/libcephfs.h
src/libcephfs.cc