]> git.ipfire.org Git - thirdparty/util-linux.git/commit
mkswap: wipe all old signatures
authorKarel Zak <kzak@redhat.com>
Fri, 11 Nov 2011 12:33:51 +0000 (13:33 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 11 Nov 2011 12:33:51 +0000 (13:33 +0100)
commit979f1dd5fe8cc27ade759af4a6e6abb6cfa45767
tree10de87d53b7aeff8fac187dc42080eed9797302e
parent1c50a7cd941e18ec1ff0799ccfca15e2253a64ad
mkswap: wipe all old signatures

mkswap(8) zaps the begin of the device (1024 bytes) only. This is not
enough, because for example ReiserFS superblock is outside this area.

This patch add blkid_do_wipe() call to mkswap(8) and all block device
is scanned and all signature are removed.

Reported-by: Martin Pitt <martin.pitt@ubuntu.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/mkswap.c