From: John Ferlan Date: Fri, 7 Apr 2017 15:53:07 +0000 (-0400) Subject: logical: Increase the size of the data to wipe X-Git-Tag: v3.3.0-rc1~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d942bf6e9e8e3991808ca5185098257e84acab5d;p=thirdparty%2Flibvirt.git logical: Increase the size of the data to wipe Since a sector size may be larger than 512 bytes, let's just increase the size to wipe to 1MB rather than 2KB --- diff --git a/src/storage/storage_backend_logical.c b/src/storage/storage_backend_logical.c index a8650368bb..ed26c24509 100644 --- a/src/storage/storage_backend_logical.c +++ b/src/storage/storage_backend_logical.c @@ -100,7 +100,7 @@ virStorageBackendLogicalInitializeDevice(const char *path) * a whole disk as a PV. So we just blank them out regardless * rather than trying to figure out if we're a disk or partition */ - if (virStorageBackendZeroPartitionTable(path, 4 * PV_BLANK_SECTOR_SIZE) < 0) + if (virStorageBackendZeroPartitionTable(path, 1024 * 1024) < 0) return -1; /*