ref: d3bc637d76eb34fc95de4fefa335f7870063dded
parent: 130ac62c49a796d558f9b3b6a343bdac870a9cdd
author: Timo Teräs <timo.teras@iki.fi>
date: Fri Mar 11 15:39:03 CST 2016
nlplug-findfs: scan block devices on change raid disks are created zero sized. when mdadm has found all the disks it finally enables it. this causes md devices to be zero sized for some time after their creation, and blkid will not detect them. catch the 'change' notification and rescan block devices for updated blkid.
--- a/nlplug-findfs.c
+++ b/nlplug-findfs.c
@@ -713,7 +713,7 @@
}
if (ev->subsystem && strcmp(ev->subsystem, "block") == 0
- && strcmp(ev->action, "add") == 0) {
+ && (strcmp(ev->action, "add") == 0 || strcmp(ev->action, "change") == 0)) {
int rc;
snprintf(ev->devnode, sizeof(ev->devnode), "/dev/%s",