manually import linux-md data since mdadm upstream doesn't do this yet
authorDavid Zeuthen <davidz@redhat.com>
Sun, 15 Feb 2009 06:00:18 +0000 (01:00 -0500)
committerDavid Zeuthen <davidz@redhat.com>
Sun, 15 Feb 2009 06:00:18 +0000 (01:00 -0500)
src/95-devkit-disks.rules

index 7fd2c6c..4be161b 100644 (file)
@@ -59,6 +59,12 @@ LABEL="device_mapper_end"
 
 ##############################################################################################################
 
+# pick up data from MD components; this really ought to be done by mdadm itself
+#
+ENV{ID_FS_TYPE}=="linux_raid_member", IMPORT{program}="/sbin/mdadm --examine --export $tempnode"
+
+##############################################################################################################
+
 # Example rule for tagging a device with a specific media type. Where and
 # how to store this database needs some thought.
 #