diff options
author | NeilBrown <neilb@suse.de> | 2009-04-14 02:58:54 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-04-14 02:58:54 +0200 |
commit | fa5090285af9401f950aa5c1a3a82708c69c4906 (patch) | |
tree | 53d54dd906fef85b0b82964b1ca394c669fdb0d5 /udev-md-raid.rules | |
parent | mapfile: optionally store map file in /dev (diff) | |
download | mdadm-fa5090285af9401f950aa5c1a3a82708c69c4906.tar.xz mdadm-fa5090285af9401f950aa5c1a3a82708c69c4906.zip |
udev rules fix for partitions.
sysfs directories for partitions do not have md/* files, but
should not for that reason be ignored.
Thanks to Michal Soltys for original fix.
Signed-off-by: Michal Soltys <soltys@ziu.info>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'udev-md-raid.rules')
-rw-r--r-- | udev-md-raid.rules | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/udev-md-raid.rules b/udev-md-raid.rules index 4b0a4169..eec16b73 100644 --- a/udev-md-raid.rules +++ b/udev-md-raid.rules @@ -10,6 +10,10 @@ ACTION=="change", GOTO="md_no_incr" LABEL="md_no_incr" KERNEL!="md*", GOTO="md_end" +# partitions have no md/{array_state,metadata_version}, but should not +# for that reason be ignored. +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" |