Require mke2fs -F -F for really dangerous operations
Disambiguate the use of "-F" (force) flag for mke2fs to avoid dangerous
situations. The use of -F is needed for regular backing files and
for filesystems on whole block devices. It should NOT be confused
with mke2fs on an apparently-mounted or in-use filesystem.
Signed-off-by: Andreas Dilger <adilger@clusterfs.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
diff --git a/misc/ChangeLog b/misc/ChangeLog
index d489bf1..9b3ccd1 100644
--- a/misc/ChangeLog
+++ b/misc/ChangeLog
@@ -1,5 +1,9 @@
2006-08-05 Theodore Tso <tytso@mit.edu>
+ * mke2fs.c (PRS), util.c (check_mount): In order to force mke2fs
+ to create a filesystem even though it appears to be in use
+ or mounted, the -F (force) flag must be specified twice.
+
* filefrag.c: Change EXT3_EXTENTS_FL to EXT4_EXTENTS_FL
2006-07-15 Theodore Tso <tytso@mit.edu>