|
@@ -7,7 +7,6 @@
|
|
|
#include <linux/sched.h>
|
|
|
#include <linux/debugfs.h>
|
|
|
#include <linux/seq_file.h>
|
|
|
-#include <linux/utsname.h>
|
|
|
#include <linux/ratelimit.h>
|
|
|
|
|
|
#include "super.h"
|
|
@@ -884,8 +883,8 @@ static struct ceph_msg *create_session_open_msg(struct ceph_mds_client *mdsc, u6
|
|
|
void *p;
|
|
|
|
|
|
const char* metadata[][2] = {
|
|
|
- {"hostname", utsname()->nodename},
|
|
|
- {"kernel_version", utsname()->release},
|
|
|
+ {"hostname", mdsc->nodename},
|
|
|
+ {"kernel_version", init_utsname()->release},
|
|
|
{"entity_id", opt->name ? : ""},
|
|
|
{"root", fsopt->server_path ? : "/"},
|
|
|
{NULL, NULL}
|
|
@@ -3539,6 +3538,8 @@ int ceph_mdsc_init(struct ceph_fs_client *fsc)
|
|
|
init_rwsem(&mdsc->pool_perm_rwsem);
|
|
|
mdsc->pool_perm_tree = RB_ROOT;
|
|
|
|
|
|
+ strncpy(mdsc->nodename, utsname()->nodename,
|
|
|
+ sizeof(mdsc->nodename) - 1);
|
|
|
return 0;
|
|
|
}
|
|
|
|