]> git.ipfire.org Git - thirdparty/util-linux.git/commit
wipefs: Fix mismatch if more -o options used.
authorMilan Broz <mbroz@redhat.com>
Mon, 5 Mar 2012 21:07:09 +0000 (22:07 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 8 Mar 2012 15:11:36 +0000 (16:11 +0100)
commit24df2633d3dda02be6f5b686f3347653745fdd08
treeff9095587b9b0f3a3687a72eb0802e5faaaf67a3
parentbf91904c24c470a750a7efa8ceaed3f9e9996b6c
wipefs: Fix mismatch if more -o options used.

If there are more offset options specified, some could be lost.

Try
pvcreate /dev/sd[bcde]
mdadm -C -l 5 -n4 /dev/md0 /dev/sd[bcde]
mdadm --stop /dev/md0

wipefs -n -o 0x1000 -o 0x218 /dev/sdb
- LVM2 signature remains there

wipefs -n -o 0x218 -o 0x1010 /dev/sdb
- no report about ignored signature

Signed-off-by: Milan Broz <mbroz@redhat.com>
misc-utils/wipefs.c