Feature #22105
closed
provide a way to look up snapshotted inodes by vinodeno_t
Added by Jeff Layton over 6 years ago.
Updated about 5 years ago.
Component(FS):
Client, Ganesha FSAL
Description
An NFS client could conceivably present a filehandle that refers to a snapshot inode after ganesha has been stopped and restarted. Currently we have no interface for looking up a snapshot inode based on a inode number + snapid tuple.
I imagine that people will expect to be able to access snapshots via NFS, so we will likely need this ability. Basically, we need an analogue to ceph_ll_lookup_inode that takes a vinodeno_t instead of just an inode number.
Files
- Subject changed from provide a way to look up snapshotted inodes by ino+snapid tuple to provide a way to look up snapshotted inodes by vinodeno_t
For directory inode, snapped inode are always stored together with head inode. The hard part is non-directory inode, because there can multiple snapped inodes stored in different directories.
Is it possible to make nfs client remember snapped inode's parent directory (and hash of corresponding dentry). If we can, implementing this function should be easy.
Zheng Yan wrote:
Is it possible to make nfs client remember snapped inode's parent directory (and hash of corresponding dentry). If we can, implementing this function should be easy.
That may be possible. NFSv4 filehandles are 128 bits. We currently just encode vinodeno_t as the filehandle, but we probably could mix in some info about the parent inode if that would be useful.
Is it possible though that a file like that could be renamed into a different directory? If so, then would its filehandle have to change?
Jeff Layton wrote:
Is it possible though that a file like that could be renamed into a different directory? If so, then would its filehandle have to change?
For snapped inode, it's impossible because snapshot is readonly
- Status changed from New to In Progress
FYI: here is my working-in-progress kernel patch for exporting snapped inode.
- Status changed from In Progress to 12
- Status changed from 12 to Pending Backport
- Backport set to luminous
- Copied to Backport #22239: luminous: provide a way to look up snapshotted inodes by vinodeno_t added
- Status changed from Pending Backport to Resolved
- Backport deleted (
luminous)
- Category deleted (
109)
- Component(FS) Ganesha FSAL added
Also available in: Atom
PDF