Updating exit-gracefully-when-md-device-not-found.patch for new upstream.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
eb2f220030
commit
37696d7008
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ diff -Naurp mdadm.orig/Monitor.c mdadm/Monitor.c
|
|||
+ if (st->devnm[0] == 0) {
|
||||
+ char *found = fd2devnm(fd);
|
||||
+ if (!found) {
|
||||
+ alert("DeviceDisappeared", dev, NULL, ainfo);
|
||||
+ alert(EVENT_DEVICE_DISAPPEARED, NULL, 0, dev, NULL);
|
||||
+ goto out;
|
||||
+ }
|
||||
+ snprintf(st->devnm, MD_NAME_MAX, "%s", found);
|
||||
|
|
Loading…
Add table
Reference in a new issue