extern unsigned int obd_enable_stats_header;
/* Generic callbacks */
-extern int lprocfs_uuid_seq_show(struct seq_file *m, void *data);
extern int lprocfs_server_uuid_seq_show(struct seq_file *m, void *data);
ssize_t conn_uuid_show(struct kobject *kobj, struct attribute *attr, char *buf);
extern int lprocfs_import_seq_show(struct seq_file *m, void *data);
return 0;
}
-static inline int lprocfs_uuid_seq_show(struct seq_file *m, void *data)
-{
- return 0;
-}
-
static inline int lprocfs_server_seq_show(struct seq_file *m, void *data)
{
return 0;
EXPORT_SYMBOL(lprocfs_register);
/* Generic callbacks */
-int lprocfs_uuid_seq_show(struct seq_file *m, void *data)
-{
- struct obd_device *obd = data;
-
- LASSERT(obd != NULL);
- seq_printf(m, "%s\n", obd->obd_uuid.uuid);
- return 0;
-}
-EXPORT_SYMBOL(lprocfs_uuid_seq_show);
-
static ssize_t uuid_show(struct kobject *kobj, struct attribute *attr,
char *buf)
{
return rc;
}
-LPROC_SEQ_FOPS_RO_TYPE(echo, uuid);
-static struct lprocfs_vars lprocfs_echo_obd_vars[] = {
- { .name = "uuid",
- .fops = &echo_uuid_fops },
- { NULL }
-};
-
const struct obd_ops echo_obd_ops = {
.o_owner = THIS_MODULE,
.o_connect = echo_connect,
RETURN(rc);
}
- obd->obd_vars = lprocfs_echo_obd_vars;
if (!lprocfs_obd_setup(obd, true) &&
ldebugfs_alloc_obd_stats(obd, LPROC_ECHO_LAST) == 0) {
lprocfs_counter_init(obd->obd_stats, LPROC_ECHO_READ_BYTES,
if (rc != 0)
goto failed_0;
- rc = class_register_type(&echo_obd_ops, NULL, true,
+ rc = class_register_type(&echo_obd_ops, NULL, false,
LUSTRE_ECHO_NAME, &echo_srv_type);
if (rc != 0)
goto failed_1;