FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 03-10-2011, 02:52 PM
David Lehman
 
Default 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
 

Thread Tools




All times are GMT. The time now is 09:33 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org