Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu User (http://www.linux-archive.org/ubuntu-user/)
-   -   Fix kickstart handling of md spares. (#683605) (http://www.linux-archive.org/ubuntu-user/499651-fix-kickstart-handling-md-spares-683605-a.html)

David Lehman 03-10-2011 02:52 PM

Fix kickstart handling of md spares. (#683605)
 
---
pyanaconda/kickstart.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 5fe4cd8..85c96a9 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -950,8 +950,8 @@ class RaidData(commands.raid.F15_RaidData):
kwargs["name"] = devicename
kwargs["level"] = self.level
kwargs["parents"] = raidmems
- kwargs["memberDevices"] = len(raidmems)
- kwargs["totalDevices"] = kwargs["memberDevices"]+self.spares
+ kwargs["memberDevices"] = len(raidmems) - self.spares
+ kwargs["totalDevices"] = len(raidmems)

# If we were given a pre-existing RAID to create a filesystem on,
# we need to verify it exists and then schedule a new format action
--
1.7.3.5

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 07:07 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.