Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-5396 all: use NULL instead of 0
[fs/lustre-release.git]
/
lustre
/
mdt
/
mdt_mds.c
diff --git
a/lustre/mdt/mdt_mds.c
b/lustre/mdt/mdt_mds.c
index
367f659
..
d0b0b29
100644
(file)
--- a/
lustre/mdt/mdt_mds.c
+++ b/
lustre/mdt/mdt_mds.c
@@
-138,7
+138,7
@@
static int mds_start_ptlrpc_service(struct mds_device *m)
{
static struct ptlrpc_service_conf conf;
struct obd_device *obd = m->mds_md_dev.md_lu_dev.ld_obd;
-
cfs_proc_dir_entry_t
*procfs_entry;
+
struct proc_dir_entry
*procfs_entry;
int rc = 0;
ENTRY;
@@
-464,6
+464,13
@@
static struct lu_device *mds_device_free(const struct lu_env *env,
RETURN(NULL);
}
+LPROC_SEQ_FOPS_RO_TYPE(mds, uuid);
+
+static struct lprocfs_seq_vars lprocfs_mds_obd_vars[] = {
+ { "uuid", &mds_uuid_fops },
+ { NULL }
+};
+
static struct lu_device *mds_device_alloc(const struct lu_env *env,
struct lu_device_type *t,
struct lustre_cfg *cfg)
@@
-487,7
+494,8
@@
static struct lu_device *mds_device_alloc(const struct lu_env *env,
/* set this lu_device to obd, because error handling need it */
obd->obd_lu_dev = l;
- rc = lprocfs_obd_setup(obd, lprocfs_mds_obd_vars);
+ obd->obd_vars = lprocfs_mds_obd_vars;
+ rc = lprocfs_obd_setup(obd);
if (rc != 0) {
mds_device_free(env, l);
l = ERR_PTR(rc);
@@
-539,11
+547,8
@@
int mds_mod_init(void)
mds_num_threads = mdt_num_threads;
}
- return class_register_type(&mds_obd_device_ops, NULL, NULL,
-#ifndef HAVE_ONLY_PROCFS_SEQ
- lprocfs_mds_module_vars,
-#endif
- LUSTRE_MDS_NAME, &mds_device_type);
+ return class_register_type(&mds_obd_device_ops, NULL, true, NULL,
+ LUSTRE_MDS_NAME, &mds_device_type);
}
void mds_mod_exit(void)