chiark / gitweb /
rules: md-raid.rules fix
authorMichal Soltys <soltys@ziu.info>
Mon, 16 Mar 2009 00:29:19 +0000 (01:29 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Mon, 16 Mar 2009 00:29:19 +0000 (01:29 +0100)
md/array_state in case of partition doesn't exist, so all uevents
for partitions didn't execute any SYMLINK rules

Signed-off-by: Michal Soltys <soltys@ziu.info>
rules/packages/64-md-raid.rules

index abb029c..4faf18c 100644 (file)
@@ -8,6 +8,9 @@ ACTION!="add|change", GOTO="md_end"
 # import data from a raid set
 KERNEL!="md*", GOTO="md_end"
 
+# partitions have no md/{array_state,metadata_version}
+ENV{DEVTYPE}=="partition", GOTO="md_ignore_state"
+
 # 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"