Project

General

Profile

Actions

Bug #44340

closed

add a way to get clientid for a mount

Added by Jeff Layton about 4 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% 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).


Subtasks 1 (0 open1 closed)

Feature #48124: kclient: add one ioctl command to get the fsid and client idDuplicateXiubo Li

Actions
Actions #1

Updated by Jeff Layton over 3 years ago

  • Assignee changed from Jeff Layton to Xiubo Li
Actions #2

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.

Actions #3

Updated by Xiubo Li over 3 years ago

  • Status changed from New to Fix Under Review
Actions #4

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" 

Actions #5

Updated by Xiubo Li about 3 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF