summaryrefslogtreecommitdiffstats
path: root/misc-utils/wipefs.8
diff options
context:
space:
mode:
authorKarel Zak2014-01-20 12:07:35 +0100
committerKarel Zak2014-01-20 12:16:47 +0100
commit081dc33b46d1c58f767202920dbdc13039c09565 (patch)
tree3f386f3b604e7257edaa5e5333d05e41c92ab3f0 /misc-utils/wipefs.8
parentlibblkid: detect alone PMBR (diff)
downloadkernel-qcow2-util-linux-081dc33b46d1c58f767202920dbdc13039c09565.tar.gz
kernel-qcow2-util-linux-081dc33b46d1c58f767202920dbdc13039c09565.tar.xz
kernel-qcow2-util-linux-081dc33b46d1c58f767202920dbdc13039c09565.zip
wipefs: call BLKRRPART when erase partition table
It's better to be smart than make things inconsistent (without BLKRRPART kernel still uses the erased PT and udev-db still contains obsolete information). Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/wipefs.8')
-rw-r--r--misc-utils/wipefs.83
1 files changed, 3 insertions, 0 deletions
diff --git a/misc-utils/wipefs.8 b/misc-utils/wipefs.8
index 331e96ca8..0f280b38a 100644
--- a/misc-utils/wipefs.8
+++ b/misc-utils/wipefs.8
@@ -23,6 +23,9 @@ does not erase the filesystem itself nor any other data from the device.
When used without options \fB-a\fR or \fB-o\fR, it lists all visible filesystems
and the offsets of their basic signatures.
+.B wipefs
+calls BLKRRPART ioctl when erase partition table to inform kernel about the change.
+
Note that some filesystems or some partition tables store more magic strings on
the devices. The
.B wipefs