patch-2.1.92 linux/drivers/block/md.c
Next file: linux/drivers/block/nbd.c
Previous file: linux/drivers/block/ll_rw_blk.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Sun Mar 29 12:24:05 1998
- Orig file:
v2.1.91/linux/drivers/block/md.c
- Orig date:
Tue Mar 17 22:18:14 1998
diff -u --recursive --new-file v2.1.91/linux/drivers/block/md.c linux/drivers/block/md.c
@@ -851,11 +851,13 @@
EXPORT_SYMBOL(md_wakeup_thread);
EXPORT_SYMBOL(md_do_sync);
+#ifdef CONFIG_PROC_FS
static struct proc_dir_entry proc_md = {
PROC_MD, 6, "mdstat",
S_IFREG | S_IRUGO, 1, 0, 0,
0, &proc_array_inode_operations,
};
+#endif
static void md_geninit (struct gendisk *gdisk)
{
@@ -873,7 +875,9 @@
blksize_size[MD_MAJOR] = md_blocksizes;
max_readahead[MD_MAJOR] = md_maxreadahead;
+#ifdef CONFIG_PROC_FS
proc_register(&proc_root, &proc_md);
+#endif
}
int md_error (kdev_t mddev, kdev_t rdev)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov