diff options
author | Andreas Dilger <adilger@clusterfs.com> | 2006-08-05 19:05:53 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2006-08-05 19:05:53 -0400 |
commit | c16e610c5100cd5829d969272af3035fac8e1a31 (patch) | |
tree | cd202f765170e2d0a3c3bf521a4f67cee02b3ebf /misc/mke2fs.c | |
parent | 8fe81a3d53fbaa1670ece5fb7fd11dd5ae45b8da (diff) | |
download | e2fsprogs-c16e610c5100cd5829d969272af3035fac8e1a31.tar.gz |
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>
Diffstat (limited to 'misc/mke2fs.c')
-rw-r--r-- | misc/mke2fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/mke2fs.c b/misc/mke2fs.c index 2686d729..677c5140 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -1089,7 +1089,7 @@ static void PRS(int argc, char *argv[]) verbose = 1; break; case 'F': - force = 1; + force++; break; case 'L': volume_label = optarg; |