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 > Gentoo > Gentoo User

LinkBack Thread Tools
Old 11-06-2009, 01:17 PM
Hans de Goede
Default Don't stop mdraid containers or their arrays (#532971)


On 11/06/2009 03:12 PM, Chris Lumens wrote:

diff --git a/storage/devices.py b/storage/devices.py
index 50ae804..28e031c 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -2517,6 +2517,12 @@ class MDRaidArrayDevice(StorageDevice):

+ # Since BIOS RAID sets (containers in mdraid terminology) never change
+ # there is no need to stop them and later restart them. Not stopping
+ # (and thus also not starting) them also works around bug 523334
+ if self.type == "mdcontainer" or self.devices[0].type == "mdcontainer":
+ return
# We don't really care what the array's state is. If the device
# file exists, we want to deactivate it. mdraid has too many
# states.

Are we guaranteed to have self.devices[0] here?

Yes, we are de-activating a set, a set without any members can not be active.



Anaconda-devel-list mailing list

Thread Tools

All times are GMT. The time now is 02:04 AM.

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