From: NeilBrown Date: Thu, 22 Dec 2011 23:47:07 +0000 (+1100) Subject: Incremental: make sure container name appears in /dev X-Git-Tag: mdadm-3.2.3~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a408d66c4f4a658f62df547ea5e06b4a7afc5ec0;p=thirdparty%2Fmdadm.git Incremental: make sure container name appears in /dev We need to send a "change" event just like we do when creating an array. This reverts commit 382afe49b10cf3e5a4764cee74649d1cd8c91813 The problem is that we need udev to create the file in /dev for us. It might be unnecessary for udev to consider assembling things in this array, but it shouldn't cause a problem. If it did that would be a different bug which we probably need locking to fix. Or maybe udev shouldn't trigger a "-I" for containers appearing. Signed-off-by: NeilBrown --- diff --git a/Incremental.c b/Incremental.c index d3724a48..ebdce80f 100644 --- a/Incremental.c +++ b/Incremental.c @@ -447,6 +447,7 @@ int Incremental(char *devname, int verbose, int runstop, if (info.array.level == LEVEL_CONTAINER) { int devnum = devnum; /* defined and used iff ->external */ /* Try to assemble within the container */ + sysfs_uevent(sra, "change"); if (verbose >= 0) fprintf(stderr, Name ": container %s now has %d devices\n",