Actions
Feature #9189
closedExpose client identifying metadata to MDS, e.g. hostname
% Done:
0%
Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
Labels (FS):
Pull request ID:
Description
Currently, when doing e.g. a "session ls" on an MDS's admin socket, we get client IDs and IP addresses. It would be much nicer for admins trying to identify/debug/kill bad sessions if we could also tell them a hostname or other friendly identifier for the client.
This could take the form of a metadata map<string,string> included in MClientSession. The client would by default populate it with 'hostname' (or fqdn?) and 'mountpoint' keys. It should also look for an environment variable (fuse) or mount flag (kernel) that would allow users to add/override metadata. Then on the MDS side keep this metadata in Session and use it when doing output for e.g. session ls or any future session management stuff.
Actions