patch-2.1.66 linux/drivers/block/md.c
Next file: linux/drivers/char/ChangeLog
Previous file: linux/drivers/block/floppy.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Wed Nov 19 11:00:02 1997
- Orig file:
v2.1.65/linux/drivers/block/md.c
- Orig date:
Wed Nov 12 13:34:25 1997
diff -u --recursive --new-file v2.1.65/linux/drivers/block/md.c linux/drivers/block/md.c
@@ -541,6 +541,9 @@
if (md_dev[minor].nb_dev==MAX_REAL)
return -EINVAL;
+ if (!fs_may_mount (dev))
+ return -EBUSY;
+
if (blk_size[MAJOR(dev)] == NULL || blk_size[MAJOR(dev)][MINOR(dev)] == 0) {
printk("md_add(): zero device size, huh, bailing out.\n");
return -EINVAL;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov