1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-04-23 22:50:44 +03:00

Only wipe signature bytes when destroying md superblock, so process

is reversible.
This commit is contained in:
Alasdair Kergon 2004-11-19 19:32:09 +00:00
parent 5ab925debf
commit 82416639c4

View File

@ -86,7 +86,7 @@ static int pvcreate_check(struct cmd_context *cmd, const char *name)
(yes_no_prompt("Software RAID md superblock "
"detected on %s. Wipe it? [y/n] ", name) == 'y'))) {
log_print("Wiping software RAID md superblock on %s", name);
if (!dev_zero(dev, md_superblock, 512)) {
if (!dev_zero(dev, md_superblock, 4)) {
log_error("Failed to wipe RAID md superblock on %s",
name);
return 0;