Bug #51062
closedmds,client: suppport getvxattr RPC
100%
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.
Updated by Patrick Donnelly almost 3 years ago
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.
Updated by Jeff Layton almost 3 years ago
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.
Updated by Patrick Donnelly almost 3 years ago
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).
Updated by Milind Changire almost 3 years ago
- Status changed from New to Triaged
- Assignee set to Milind Changire
Updated by Milind Changire almost 3 years ago
- Status changed from Triaged to Fix Under Review
- Pull request ID set to 42001
Updated by Patrick Donnelly over 2 years ago
- 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
Updated by Venky Shankar about 2 years ago
- Status changed from Fix Under Review to Resolved
Updated by Venky Shankar about 2 years ago
- Status changed from Resolved to Pending Backport
- Backport set to quincy, pacific
Updated by Backport Bot about 2 years ago
- Copied to Backport #54532: pacific: mds,client: suppport getvxattr RPC added
Updated by Backport Bot about 2 years ago
- Copied to Backport #54533: quincy: mds,client: suppport getvxattr RPC added
Updated by Patrick Donnelly almost 2 years ago
- Has duplicate Bug #46438: mds: add vxattr for querying inherited layout added
Updated by Konstantin Shalygin over 1 year ago
- 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