diff options
author | Yan, Zheng <zyan@redhat.com> | 2016-04-21 05:09:55 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-05-26 01:15:33 +0200 |
commit | 3f38495409b613071021fca86629df7ae81820ad (patch) | |
tree | ce79ca6d4cc1482efb19fdbf06edbd48439edb6c /fs/ceph/mds_client.c | |
parent | ceph: don't show symlink target in debugfs/mdsc (diff) | |
download | linux-3f38495409b613071021fca86629df7ae81820ad.tar.xz linux-3f38495409b613071021fca86629df7ae81820ad.zip |
ceph: report mount root in session metadata
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/mds_client.c')
-rw-r--r-- | fs/ceph/mds_client.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index cbe6c0afdadc..047f723bdbe6 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -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} }; |