Merging upstream version 4.2+20231121.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
ae2c938e82
commit
5ba18aa35e
9 changed files with 307 additions and 150 deletions
3
Manage.c
3
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue