diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-12-10 10:50:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-12-10 10:50:28 +0000 |
commit | f0ab034d5b67bbd37fa4067c26dc7b5642b06172 (patch) | |
tree | 78092973d6591d33af1e0a0fb03c11d8458e1793 /Manage.c | |
parent | Adding upstream version 4.2+20231026. (diff) | |
download | mdadm-f0ab034d5b67bbd37fa4067c26dc7b5642b06172.tar.xz mdadm-f0ab034d5b67bbd37fa4067c26dc7b5642b06172.zip |
Adding upstream version 4.2+20231121.upstream/4.2+20231121
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | Manage.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |