1
0
Fork 0

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:
Daniel Baumann 2025-02-14 06:04:00 +01:00
parent eb2f220030
commit 37696d7008
Signed by: daniel
GPG key ID: FBB4F0E80A80222F

View file

@ -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);