summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrzemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com>2010-11-22 20:58:06 +1100
committerNeilBrown <neilb@suse.de>2010-11-22 20:58:06 +1100
commit475a01b8bce8575dd1b2ab6495e65e854702ac0e (patch)
tree500d82a764e926f31a32a0871a9fe122837395d6
parent950bc34477adcaa8788f09255d2fcfa19c052b0f (diff)
downloadmdadm-475a01b8bce8575dd1b2ab6495e65e854702ac0e.tar.gz
Update of udev rules to support IMSM devices
ID_FS_TYPE for IMSM members is set to isw_raid_member, so they must also be handled in udev. Signed-off-by: Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r--udev-md-raid.rules2
1 files changed, 2 insertions, 0 deletions
diff --git a/udev-md-raid.rules b/udev-md-raid.rules
index a4a57ac..1d89833 100644
--- a/udev-md-raid.rules
+++ b/udev-md-raid.rules
@@ -5,6 +5,8 @@ SUBSYSTEM!="block", GOTO="md_end"
# handle potential components of arrays
ENV{ID_FS_TYPE}=="linux_raid_member", ACTION=="remove", RUN+="/sbin/mdadm -If $name --path $env{ID_PATH}"
ENV{ID_FS_TYPE}=="linux_raid_member", ACTION=="add", RUN+="/sbin/mdadm --incremental $env{DEVNAME}"
+ENV{ID_FS_TYPE}=="isw_raid_member", ACTION=="remove", RUN+="/sbin/mdadm -If $name --path $env{ID_PATH}"
+ENV{ID_FS_TYPE}=="isw_raid_member", ACTION=="add", RUN+="/sbin/mdadm --incremental $env{DEVNAME}"
# handle md arrays
ACTION!="add|change", GOTO="md_end"