提交 4361a048 编写于 作者: O Oleg Drokin 提交者: Greg Kroah-Hartman

staging/lustre: move /proc/fs/lustre/devices to debugfs

the devices file prints out status information about all
obd devices in the system in human readable form.
Signed-off-by: NDmitry Eremin <dmitry.eremin@intel.com>
Signed-off-by: NOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 5c8c82f6
......@@ -407,7 +407,7 @@ static int obd_device_list_open(struct inode *inode, struct file *file)
return rc;
seq = file->private_data;
seq->private = PDE_DATA(inode);
seq->private = inode->i_private;
return 0;
}
......@@ -467,12 +467,7 @@ int class_procfs_init(void)
kobject_put(lustre_kobj);
goto out;
}
rc = lprocfs_seq_create(proc_lustre_root, "devices", 0444,
&obd_device_list_fops, NULL);
out:
if (rc)
CERROR("error adding /proc/fs/lustre/devices file\n");
return rc;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册