]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Create.c
Generate 'change' uevents when arrays change in non-obvious ways.
authorNeilBrown <neilb@suse.de>
Tue, 4 Nov 2008 09:50:39 +0000 (20:50 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 4 Nov 2008 09:50:39 +0000 (20:50 +1100)
commit975903767837c572971675a7bf6d866d3be5fa56
treee199783fd86efde8dc1049f37021ed82a87c37ec
parent757a5d74ff11aadb87c9ff8e038c7140d2c457a8
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 <neilb@suse.de>
Assemble.c
Create.c
Incremental.c
Manage.c
mdadm.h
mdassemble.c
sysfs.c