r229 - in mdadm/trunk/debian: . initramfs
madduck at users.alioth.debian.org
madduck at users.alioth.debian.org
Wed Oct 25 17:56:35 UTC 2006
Author: madduck
Date: 2006-10-25 17:56:35 +0000 (Wed, 25 Oct 2006)
New Revision: 229
Modified:
mdadm/trunk/debian/changelog
mdadm/trunk/debian/initramfs/script.local-top
mdadm/trunk/debian/mdadm-raid
Log:
* Send udev events for arrays assembled from the initramfs or by the init
script (closes: #394193). I unconditionally send events for all arrays
that have been assembled to this point -- it does not matter if an event
is sent twice.
Modified: mdadm/trunk/debian/changelog
===================================================================
--- mdadm/trunk/debian/changelog 2006-10-24 09:09:16 UTC (rev 228)
+++ mdadm/trunk/debian/changelog 2006-10-25 17:56:35 UTC (rev 229)
@@ -1,3 +1,12 @@
+mdadm (2.5.5-1~unreleased.2) UNRELEASED; urgency=low
+
+ * Send udev events for arrays assembled from the initramfs or by the init
+ script (closes: #394193). I unconditionally send events for all arrays
+ that have been assembled to this point -- it does not matter if an event
+ is sent twice.
+
+ -- martin f. krafft <madduck at debian.org> Wed, 25 Oct 2006 16:38:03 +0200
+
mdadm (2.5.5-1~unreleased.1) UNRELEASED; urgency=low
* New upstream release:
Modified: mdadm/trunk/debian/initramfs/script.local-top
===================================================================
--- mdadm/trunk/debian/initramfs/script.local-top 2006-10-24 09:09:16 UTC (rev 228)
+++ mdadm/trunk/debian/initramfs/script.local-top 2006-10-25 17:56:35 UTC (rev 229)
@@ -106,4 +106,13 @@
done
fi
+verbose && log_begin_msg "Triggering udev events for assembled arrays"
+for uevent in /sys/block/md*/uevent; do
+ test -w $uevent || continue
+ echo add > $uevent
+ uevent=${uevent#/sys/block/}
+ verbose && log_success_msg "triggered uevent for ${uevent%/uevent}"
+done
+verbose && log_end_msg
+
exit 0
Modified: mdadm/trunk/debian/mdadm-raid
===================================================================
--- mdadm/trunk/debian/mdadm-raid 2006-10-24 09:09:16 UTC (rev 228)
+++ mdadm/trunk/debian/mdadm-raid 2006-10-25 17:56:35 UTC (rev 229)
@@ -157,6 +157,14 @@
*) :;;
esac
done || exit $?
+
+ log_action_begin_msg "Generating udev events for MD arrays"
+ for uevent in /sys/block/md*/uevent; do
+ test -w $uevent || continue
+ echo add > $uevent
+ done
+ log_action_end_msg 0
+
else
log_problem "no $CONFIG file"
fi
More information about the pkg-mdadm-commits
mailing list