aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2015-01-15 21:54:43 -0500
committerIlya Dryomov <idryomov@gmail.com>2015-02-19 05:31:39 -0500
commita6a5ce4f0df9146ba8cb61121b80aa191fbb1f04 (patch)
tree121f32a8a4fef119c9d8353ce7afc702ef5abbaa
parent38c48b5f0a7fd5ed9fdab6da4d208aa23cc5391a (diff)
client: include kernel version in client metadata
Signed-off-by: Yan, Zheng <zyan@redhat.com>
-rw-r--r--fs/ceph/mds_client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 03720fe3f531..03482c0974b6 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -844,8 +844,9 @@ static struct ceph_msg *create_session_open_msg(struct ceph_mds_client *mdsc, u6
844 struct ceph_options *opt = mdsc->fsc->client->options; 844 struct ceph_options *opt = mdsc->fsc->client->options;
845 void *p; 845 void *p;
846 846
847 const char* metadata[3][2] = { 847 const char* metadata[][2] = {
848 {"hostname", utsname()->nodename}, 848 {"hostname", utsname()->nodename},
849 {"kernel_version", utsname()->release},
849 {"entity_id", opt->name ? opt->name : ""}, 850 {"entity_id", opt->name ? opt->name : ""},
850 {NULL, NULL} 851 {NULL, NULL}
851 }; 852 };