]> git.ipfire.org Git - thirdparty/util-linux.git/commit - libblkid/src/probe.c
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>
Thu, 1 Mar 2012 13:24:04 +0000 (14:24 +0100)
commit89d39d22170b7c5b264e270ce706a0d25f2e0d36
tree5c1d0983d792b86b27585a76e10e4166f955a019
parentee99c9cb37b60630d86492c02ea71e872b22c660
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