Actions
Bug #44340
closedadd a way to get clientid for a mount
% Done:
100%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):
Description
We currently don't have a way to tell what the client ID of a particular mount is, in situations where there are multiple mounts on the same machine.
There are a couple of potential approaches -- maybe a new ioctl that could be used with an O_PATH fd, or it may be possible to add a new fsinfo() request field (if and when that is merged).
Updated by Jeff Layton over 3 years ago
- Assignee changed from Jeff Layton to Xiubo Li
Updated by Jeff Layton over 3 years ago
Basically we just need an ioctl or new vxattr that dumps out a clientid for the mount (preferably in the format that the directories under /sys/kernel/debug/ceph are named).
A new vxattr may be the best way to do this, actually. Easier for scripts to get to, for instance.
Updated by Xiubo Li over 3 years ago
- Status changed from New to Fix Under Review
Updated by Xiubo Li over 3 years ago
As disscussed will switch to vxattr approach:
[root@lxbceph1 kcephfs]# getfattr -n ceph.cluster_fsid file # file: file ceph.cluster_fsid="6ff21dc9-36b0-45a9-bec2-75aeaf0414cf" [root@lxbceph1 kcephfs]# getfattr -n ceph.client_id file # file: file ceph.client_id="client4358"
Updated by Xiubo Li about 3 years ago
- Status changed from Fix Under Review to Resolved
Actions