patch-2.3.99-pre3 linux/drivers/block/md.c

Next file: linux/drivers/block/paride/paride.c
Previous file: linux/drivers/block/lvm.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre2/linux/drivers/block/md.c linux/drivers/block/md.c
@@ -1098,7 +1098,7 @@
 	}
 	memset(rdev, 0, sizeof(*rdev));
 
-	if (!fs_may_mount(newdev)) {
+	if (get_super(newdev)) {
 		printk("md: can not import %s, has active inodes!\n",
 			partition_name(newdev));
 		err = -EBUSY;
@@ -1722,7 +1722,7 @@
 	int err = 0, resync_interrupted = 0;
 	kdev_t dev = mddev_to_kdev(mddev);
  
-	if (!ro && !fs_may_mount (dev)) {
+	if (!ro && get_super(dev)) {
 		printk (STILL_MOUNTED, mdidx(mddev));
 		OUT(-EBUSY);
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)