Merging upstream version 4.2+20230508.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
8119c4e7dc
commit
8f10cd7248
27 changed files with 335 additions and 232 deletions
9
Detail.c
9
Detail.c
|
@ -254,10 +254,9 @@ int Detail(char *dev, struct context *c)
|
|||
fname_from_uuid(st, info, nbuf, ':');
|
||||
printf("MD_UUID=%s\n", nbuf + 5);
|
||||
mp = map_by_uuid(&map, info->uuid);
|
||||
if (mp && mp->path &&
|
||||
strncmp(mp->path, "/dev/md/", 8) == 0) {
|
||||
if (mp && mp->path && strncmp(mp->path, DEV_MD_DIR, DEV_MD_DIR_LEN) == 0) {
|
||||
printf("MD_DEVNAME=");
|
||||
print_escape(mp->path + 8);
|
||||
print_escape(mp->path + DEV_MD_DIR_LEN);
|
||||
putchar('\n');
|
||||
}
|
||||
|
||||
|
@ -273,9 +272,9 @@ int Detail(char *dev, struct context *c)
|
|||
printf("MD_UUID=%s\n", nbuf+5);
|
||||
}
|
||||
if (mp && mp->path &&
|
||||
strncmp(mp->path, "/dev/md/", 8) == 0) {
|
||||
strncmp(mp->path, DEV_MD_DIR, DEV_MD_DIR_LEN) == 0) {
|
||||
printf("MD_DEVNAME=");
|
||||
print_escape(mp->path+8);
|
||||
print_escape(mp->path + DEV_MD_DIR_LEN);
|
||||
putchar('\n');
|
||||
}
|
||||
map_free(map);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue