[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH 2/5] New iswmd parameter for kernel cmdline



David Lehman wrote:
The above hunk can be removed, right?

Yes, I've corrected this.
---
 storage/formats/dmraid.py |    5 +++++
 storage/formats/mdraid.py |    4 ++++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/storage/formats/dmraid.py b/storage/formats/dmraid.py
index 4ebd41c..fdbe14b 100644
--- a/storage/formats/dmraid.py
+++ b/storage/formats/dmraid.py
@@ -21,6 +21,7 @@
 #
 
 from iutil import log_method_call
+from flags import flags
 from ..errors import *
 from . import DeviceFormat, register_device_format
 
@@ -93,5 +94,9 @@ class DMRaidMember(DeviceFormat):
                         type=self.type, status=self.status)
         raise DMRaidMemberError("destruction of dmraid members is non-sense")
 
+
+if flags.cmdline.has_key("iswmd"):
+    DMRaidMember._udevTypes.remove("isw_raid_member")
+
 register_device_format(DMRaidMember)
 
diff --git a/storage/formats/mdraid.py b/storage/formats/mdraid.py
index b29d2f5..47a24c1 100644
--- a/storage/formats/mdraid.py
+++ b/storage/formats/mdraid.py
@@ -23,6 +23,7 @@
 import os
 
 from iutil import log_method_call
+from flags import flags
 from parted import PARTITION_RAID
 from ..errors import *
 from ..devicelibs import mdraid
@@ -96,5 +97,8 @@ class MDRaidMember(DeviceFormat):
         f.write("raid.%s" % self.mdUuid)
 
 
+if flags.cmdline.has_key("iswmd"):
+    MDRaidMember._udevTypes.append("isw_raid_member")
+
 register_device_format(MDRaidMember)
 
-- 
1.6.3.1.54.g99dd


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]