Bug #51062
closed
mds,client: suppport getvxattr RPC
Added by Jeff Layton almost 3 years ago.
Updated over 1 year ago.
Category:
Introspection/Control
Component(FS):
Client, MDS
Description
Playing with ephemeral pinning today, and found that I can't query ceph.dir.pin.random:
[jlayton@client1 test]$ sudo setfattr -n ceph.dir.pin.random -v 0.5 ephemeral/
[jlayton@client1 test]$ sudo getfattr -n ceph.dir.pin.random ephemeral/
ephemeral/: ceph.dir.pin.random: No such attribute
Most likely an oversight in the MDS xattr handling.
Jeff Layton wrote:
Playing with ephemeral pinning today, and found that I can't query ceph.dir.pin.random:
[...]
Most likely an oversight in the MDS xattr handling.
With libcephfs or kclient? We haven't wired these up yet.
kclient, but I don't think it matters. This is a server-side xattr, so it comes down to allowing it to be queried via handle_client_getxattr.
Jeff Layton wrote:
kclient, but I don't think it matters. This is a server-side xattr, so it comes down to allowing it to be queried via handle_client_getxattr.
The main challenge is that we either need to (a) pass these fields back to ht eclient in the inode data in the cap message or (b) develop a new getvxattr RPC just for learning some vxattrs. We keep needing to do (a) so I'm thinking it'd be a useful change to add a getvxattr RPC so only MDS-side changes are required in the future. In particular, this would be very helpful for getting the inherited layout on a directory (we have an open BZ for that somewhere).
- Status changed from New to Triaged
- Assignee set to Milind Changire
- Status changed from Triaged to Fix Under Review
- Pull request ID set to 42001
- Tracker changed from Bug to Feature
- Subject changed from ceph.dir.pin.random attribute can't be queried to mds,client: suppport getvxattr RPC
- Category set to Introspection/Control
- Target version set to v17.0.0
- Source set to Development
- Component(FS) Client, MDS added
- Labels (FS) task(medium) added
- Status changed from Fix Under Review to Resolved
- Status changed from Resolved to Pending Backport
- Backport set to quincy, pacific
- Copied to Backport #54532: pacific: mds,client: suppport getvxattr RPC added
- Copied to Backport #54533: quincy: mds,client: suppport getvxattr RPC added
- Has duplicate Bug #46438: mds: add vxattr for querying inherited layout added
- Tags set to backport_processed
- Tracker changed from Feature to Bug
- Status changed from Pending Backport to Resolved
- % Done changed from 0 to 100
- Tags deleted (
backport_processed)
- Regression set to No
- Severity set to 3 - minor
Also available in: Atom
PDF