>From Jeff Layton <[email protected]>:

Jeff Layton has uploaded this change for review. ( 
https://review.gerrithub.io/386499


Change subject: FSAL_CEPH: do an inode lookup vs. MDS when the Inode is not in 
cache
......................................................................

FSAL_CEPH: do an inode lookup vs. MDS when the Inode is not in cache

FSAL_CEPH just does a ceph_ll_get_inode when asked to create a
filehandle today, which only does a query of the local Ceph client
cache. This means, it can only find Inodes that were previously found
via name lookup.

When ganesha is restarted, we have a blank-slate Client, and the Inode
will not be in cache. That ends up with the NFS client getting back an
ESTALE.

We must be able to find Inodes that may not be in the cache. When
ceph_ll_get_inode can't find an Inode, try a lookup vs. the MDS for it.

The only problem is that we currently have no way to look up a snapped
inode from scratch. I think we'll probably need to add that ability to
libcephfs, but for now the best we can do is just bail out with an
ESTALE in that case.

Change-Id: I2d0e362ef8f28ba78575b60f3fb2890096d98fc6
Signed-off-by: Jeff Layton <[email protected]>
---
M src/FSAL/FSAL_CEPH/export.c
1 file changed, 15 insertions(+), 4 deletions(-)



  git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha 
refs/changes/99/386499/1
-- 
To view, visit https://review.gerrithub.io/386499
To unsubscribe, visit https://review.gerrithub.io/settings

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2d0e362ef8f28ba78575b60f3fb2890096d98fc6
Gerrit-Change-Number: 386499
Gerrit-PatchSet: 1
Gerrit-Owner: Jeff Layton <[email protected]>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to