diff options
author | Richard W.M. Jones | 2012-11-19 16:02:13 +0100 |
---|---|---|
committer | Karel Zak | 2012-11-20 10:01:20 +0100 |
commit | 2968c3fc7388f88b8debe64d61d9785601c16436 (patch) | |
tree | ca1278490003244817a3612d5044764e87f616d0 /misc-utils/wipefs.8 | |
parent | agetty: make --autologin useful with --skip-login (prompt) (diff) | |
download | kernel-qcow2-util-linux-2968c3fc7388f88b8debe64d61d9785601c16436.tar.gz kernel-qcow2-util-linux-2968c3fc7388f88b8debe64d61d9785601c16436.tar.xz kernel-qcow2-util-linux-2968c3fc7388f88b8debe64d61d9785601c16436.zip |
wipefs: Add --force option to force it to erase.
Commit c550f728f724360f99aae0fdb45b0589d9a347e0 added O_EXCL when
opening the thing to erase. This broke the wipefs utility when used
on anything which isn't an unmounted filesystem. eg. If you use it on
a block device containing partitions, then it won't work because the
kernel recognizes the partitions and so thinks the device is in use.
This change adds the --force option which, when used, undoes the above
flag change. However you still have to use --force most of the time
when erasing something that isn't a plain unmounted filesystem.
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
Diffstat (limited to 'misc-utils/wipefs.8')
-rw-r--r-- | misc-utils/wipefs.8 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/misc-utils/wipefs.8 b/misc-utils/wipefs.8 index 05a549686..67261eebe 100644 --- a/misc-utils/wipefs.8 +++ b/misc-utils/wipefs.8 @@ -38,6 +38,9 @@ erased. .IP "\fB\-a, \-\-all\fP" Erase all available signatures. This set of erased signatures could be restricted by \fB\-t <list>\fP option. +.IP "\fB\-f, \-\-force\fP" +Force erasure, even if the filesystem is mounted. This is required in +order to erase the partition table on a block device. .IP "\fB\-h, \-\-help\fP" Print help and exit. .IP "\fB\-n, \-\-no\-act\fP" |