From: NeilBrown Date: Sun, 8 Mar 2009 23:14:48 +0000 (+1100) Subject: Fix udev-rules for case where array isn't really there.. X-Git-Tag: mdadm-3.0-devel3~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fabf4941b11a852800dd7b2c61e18e69c91d8e4d;p=thirdparty%2Fmdadm.git Fix udev-rules for case where array isn't really there.. See http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h=b822542608326092e177fd1707ca7fb53b2846c4 Signed-off-by: NeilBrown --- diff --git a/udev-md-raid.rules b/udev-md-raid.rules index 246ad46c..1b0da389 100644 --- a/udev-md-raid.rules +++ b/udev-md-raid.rules @@ -11,6 +11,7 @@ KERNEL!="md*", GOTO="md_end" # container devices have a metadata version of e.g. 'external:ddf' and # never leave state 'inactive' ATTR{md/metadata_version}=="external:[A-Za-z]*", ATTR{md/array_state}=="inactive", GOTO="md_ignore_state" +TEST!="md/array_state", GOTO="md_end" ATTR{md/array_state}=="|clear|inactive", GOTO="md_end" LABEL="md_ignore_state"