summaryrefslogtreecommitdiffstats
path: root/Manage.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-12-10 10:50:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-12-10 10:50:33 +0000
commitb91e755b8dfd53f713b588a649dd69c2bb8c8c92 (patch)
tree9d6f22932d0da01b8a149aa642b1bfadd8998991 /Manage.c
parentReleasing debian version 4.2+20231026-1. (diff)
downloadmdadm-b91e755b8dfd53f713b588a649dd69c2bb8c8c92.tar.xz
mdadm-b91e755b8dfd53f713b588a649dd69c2bb8c8c92.zip
Merging upstream version 4.2+20231121.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'Manage.c')
-rw-r--r--Manage.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Manage.c b/Manage.c
index 075dd72..f0d4cb0 100644
--- a/Manage.c
+++ b/Manage.c
@@ -25,6 +25,7 @@
#include "mdadm.h"
#include "md_u.h"
#include "md_p.h"
+#include "udev.h"
#include <ctype.h>
int Manage_ro(char *devname, int fd, int readonly)
@@ -462,7 +463,7 @@ done:
goto out;
}
- if (devnm[0] && use_udev()) {
+ if (devnm[0] && udev_is_available()) {
struct map_ent *mp = map_by_devnm(&map, devnm);
remove_devices(devnm, mp ? mp->path : NULL);
}