Status: ok Use get_md_name instead of /dev/md%d for --examine --brief This allows it to work when people have different arrangement of /dev Signed-off-by: Neil Brown ### Diffstat output ./ChangeLog | 4 ++++ ./Examine.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff ./ChangeLog~current~ ./ChangeLog --- ./ChangeLog~current~ 2004-06-11 16:29:49.000000000 +1000 +++ ./ChangeLog 2004-06-11 16:29:49.000000000 +1000 @@ -1,4 +1,8 @@ Changes Prior to this release + - Device name given in -Eb is determined by examining /dev rather + than assuming /dev/md%d + +Changes Prior to 1.5.0 release - new commands "mdassemble" which is a stripped-down equivalent of "mdadm -As", that can be compiled with dietlibc. Thanks to Luca Berra . diff ./Examine.c~current~ ./Examine.c --- ./Examine.c~current~ 2004-06-11 16:29:49.000000000 +1000 +++ ./Examine.c 2004-06-11 16:29:49.000000000 +1000 @@ -236,8 +236,9 @@ int Examine(mddev_dev_t devlist, int bri char sep='='; char *c=map_num(pers, ap->super.level); char *d; - printf("ARRAY /dev/md%d level=%s num-devices=%d UUID=", - ap->super.md_minor, c?c:"-unknown-", ap->super.raid_disks); + printf("ARRAY %s level=%s num-devices=%d UUID=", + get_md_name(ap->super.md_minor), + c?c:"-unknown-", ap->super.raid_disks); if (spares) printf(" spares=%d", spares); if (ap->super.minor_version >= 90) printf("%08x:%08x:%08x:%08x", ap->super.set_uuid0, ap->super.set_uuid1,