From 996621a5898fe56b35273eb5ef4de974e07531e2 Mon Sep 17 00:00:00 2001 From: David Lehman Date: Tue, 15 Dec 2009 18:20:54 -0600 Subject: Hide biosraid member devices that contain MDRaidMember formats. This brings the behavior in line with other (dmraid) biosraid members. --- storage/formats/mdraid.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'storage/formats') diff --git a/storage/formats/mdraid.py b/storage/formats/mdraid.py index 17b01bb58..9983da4b2 100644 --- a/storage/formats/mdraid.py +++ b/storage/formats/mdraid.py @@ -64,6 +64,7 @@ class MDRaidMember(DeviceFormat): self.raidMinor = None #self.probe() + self.biosraid = False def probe(self): """ Probe for any missing information about this format. """ @@ -93,6 +94,10 @@ class MDRaidMember(DeviceFormat): # XXX hack -- we don't have a nice way to see if the array is active return False + @property + def hidden(self): + return (self._hidden or self.biosraid) + def writeKS(self, f): f.write("raid.%s" % self.mdUuid) -- cgit