]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
logical: Increase the size of the data to wipe
authorJohn Ferlan <jferlan@redhat.com>
Fri, 7 Apr 2017 15:53:07 +0000 (11:53 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 26 Apr 2017 11:28:08 +0000 (07:28 -0400)
Since a sector size may be larger than 512 bytes, let's just increase
the size to wipe to 1MB rather than 2KB

src/storage/storage_backend_logical.c

index a8650368bb376e63cd12cd6022099cadda0d19c5..ed26c24509cec933924e54dfedd7cc97114b7509 100644 (file)
@@ -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;
 
     /*