[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH 2/9] Fix md array spares test.
- From: David Lehman <dlehman redhat com>
- To: anaconda-devel-list redhat com
- Subject: [PATCH 2/9] Fix md array spares test.
- Date: Fri, 4 Mar 2011 12:44:58 -0600
While still finding the array members the spares calculation can yield
a negative value, so the test must explicitly check for greater-than-
zero instead of just non-zero.
Related: rhbz#652874
Related: rhbz#678689
---
pyanaconda/storage/devices.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pyanaconda/storage/devices.py b/pyanaconda/storage/devices.py
index 76d5ad0..0b6903b 100644
--- a/pyanaconda/storage/devices.py
+++ b/pyanaconda/storage/devices.py
@@ -2817,7 +2817,7 @@ class MDRaidArrayDevice(StorageDevice):
device.setup()
udev_settle()
- if self.spares:
+ if self.spares > 0:
# mdadm doesn't like it when you try to incrementally add spares
return
--
1.7.3.5
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]