From 975903767837c572971675a7bf6d866d3be5fa56 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 4 Nov 2008 20:50:39 +1100 Subject: Generate 'change' uevents when arrays change in non-obvious ways. When a 'container' gets started, we need udev to notice, but the kernel has no way of knowing that a KOBJ_CHANGE event is needed. So send one directly via the 'uevent' sysfs attribute. Also, uevents don't get generated when md arrays are stopped (prior to 2.6.28) so send 'change' events then too. Signed-off-by: NeilBrown --- Assemble.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Assemble.c') diff --git a/Assemble.c b/Assemble.c index 5c5a13e..f801a73 100644 --- a/Assemble.c +++ b/Assemble.c @@ -984,6 +984,7 @@ int Assemble(struct supertype *st, char *mddev, info.array.raid_disks); fprintf(stderr, "\n"); } + sysfs_uevent(&info, "change"); close(mdfd); return 0; } -- cgit