diff options
author | Yan, Zheng <zyan@redhat.com> | 2015-01-16 10:54:43 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2015-02-19 13:31:39 +0300 |
commit | a6a5ce4f0df9146ba8cb61121b80aa191fbb1f04 (patch) | |
tree | 121f32a8a4fef119c9d8353ce7afc702ef5abbaa | |
parent | 38c48b5f0a7fd5ed9fdab6da4d208aa23cc5391a (diff) | |
download | op-kernel-dev-a6a5ce4f0df9146ba8cb61121b80aa191fbb1f04.zip op-kernel-dev-a6a5ce4f0df9146ba8cb61121b80aa191fbb1f04.tar.gz |
client: include kernel version in client metadata
Signed-off-by: Yan, Zheng <zyan@redhat.com>
-rw-r--r-- | fs/ceph/mds_client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 03720fe..03482c0 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 struct ceph_options *opt = mdsc->fsc->client->options; void *p; - const char* metadata[3][2] = { + const char* metadata[][2] = { {"hostname", utsname()->nodename}, + {"kernel_version", utsname()->release}, {"entity_id", opt->name ? opt->name : ""}, {NULL, NULL} }; |