|
|
3e5111 |
From f4b39613c3c345e33fa749911f34127cf91c07fc Mon Sep 17 00:00:00 2001
|
|
|
3e5111 |
Message-Id: <f4b39613c3c345e33fa749911f34127cf91c07fc@dist-git>
|
|
|
3e5111 |
From: John Ferlan <jferlan@redhat.com>
|
|
|
3e5111 |
Date: Wed, 26 Apr 2017 08:41:13 -0400
|
|
|
3e5111 |
Subject: [PATCH] logical: Increase the size of the data to wipe
|
|
|
3e5111 |
|
|
|
3e5111 |
https://bugzilla.redhat.com/show_bug.cgi?id=1439132
|
|
|
3e5111 |
https://bugzilla.redhat.com/show_bug.cgi?id=1373711
|
|
|
3e5111 |
|
|
|
3e5111 |
Since a sector size may be larger than 512 bytes, let's just increase
|
|
|
3e5111 |
the size to wipe to 1MB rather than 2KB
|
|
|
3e5111 |
|
|
|
3e5111 |
(cherry picked from commit d942bf6e9e8e3991808ca5185098257e84acab5d)
|
|
|
3e5111 |
Signed-off-by: John Ferlan <jferlan@redhat.com>
|
|
|
3e5111 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
3e5111 |
---
|
|
|
3e5111 |
src/storage/storage_backend_logical.c | 2 +-
|
|
|
3e5111 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
3e5111 |
|
|
|
3e5111 |
diff --git a/src/storage/storage_backend_logical.c b/src/storage/storage_backend_logical.c
|
|
|
3e5111 |
index a8650368b..ed26c2450 100644
|
|
|
3e5111 |
--- a/src/storage/storage_backend_logical.c
|
|
|
3e5111 |
+++ b/src/storage/storage_backend_logical.c
|
|
|
3e5111 |
@@ -100,7 +100,7 @@ virStorageBackendLogicalInitializeDevice(const char *path)
|
|
|
3e5111 |
* a whole disk as a PV. So we just blank them out regardless
|
|
|
3e5111 |
* rather than trying to figure out if we're a disk or partition
|
|
|
3e5111 |
*/
|
|
|
3e5111 |
- if (virStorageBackendZeroPartitionTable(path, 4 * PV_BLANK_SECTOR_SIZE) < 0)
|
|
|
3e5111 |
+ if (virStorageBackendZeroPartitionTable(path, 1024 * 1024) < 0)
|
|
|
3e5111 |
return -1;
|
|
|
3e5111 |
|
|
|
3e5111 |
/*
|
|
|
3e5111 |
--
|
|
|
3e5111 |
2.12.2
|
|
|
3e5111 |
|