]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: properly reset chain in probe_do_wipe()
authorKarel Zak <kzak@redhat.com>
Thu, 1 Mar 2012 13:24:04 +0000 (14:24 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 13 Mar 2012 11:43:11 +0000 (12:43 +0100)
commitceebdd251bce455cb9866f90204fa22f3dcc58dd
tree4563573384f48960479e482915b8c6a58c255879
parentaadfcc2759b9acd99e539b9fbaef313d932107b9
libblkid: properly reset chain in probe_do_wipe()

The command wipefs is not able to remove all signatures from the
device if the first detected signature is linux raid. The another
superblock signatures are ignored. For example:

  # pvcreate /dev/sdb1
  # mdadm --create md8 --metadata=0.90 --chunk=64 --level=0 \
        --raid-devices=2 /dev/sdb1 /dev/sdb2

  # wipefs -a /dev/sdb1

will delete the linux raid signature only.

Reported-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/probe.c