mke2fs.c (check_mount): Allow a filesystem to be made even if it
appears mounted if the force option is given.
+1999-06-29 <tytso@valinux.com>
+
+ * mke2fs.c (check_mount): Allow a filesystem to be made even if it
+ appears mounted if the force option is given.
+
1999-06-24 <tytso@valinux.com>
* mke2fs.8.in: Fix typo in man page which caused the badblocks
Force
.B mke2fs
to run, even if the specified device is not a
-block special device.
+block special device, or appears to be mounted.
.TP
.I -L
Set the volume label for the filesystem.
}
if (!(mount_flags & EXT2_MF_MOUNTED))
return;
-
- fprintf(stderr, "%s is mounted; will not make a filesystem here!\n",
- device_name);
- exit(1);
+
+ fprintf(stderr, "%s is mounted; ", device_name);
+ if (force) {
+ fprintf(stderr, "mke2fs forced anyway. "
+ "Hope /etc/mtab is incorrect.\n");
+ } else {
+ fprintf(stderr, "will not make a filesystem here!\n");
+ exit(1);
+ }
}
/*