ceph: report mount root in session metadata
Signed-off-by: Yan, Zheng <zyan@redhat.com>
This commit is contained in:
@@ -839,12 +839,14 @@ static struct ceph_msg *create_session_open_msg(struct ceph_mds_client *mdsc, u6
|
||||
int metadata_bytes = 0;
|
||||
int metadata_key_count = 0;
|
||||
struct ceph_options *opt = mdsc->fsc->client->options;
|
||||
struct ceph_mount_options *fsopt = mdsc->fsc->mount_options;
|
||||
void *p;
|
||||
|
||||
const char* metadata[][2] = {
|
||||
{"hostname", utsname()->nodename},
|
||||
{"kernel_version", utsname()->release},
|
||||
{"entity_id", opt->name ? opt->name : ""},
|
||||
{"entity_id", opt->name ? : ""},
|
||||
{"root", fsopt->server_path ? : "/"},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user