If we're operating without running external programs (-N) and
autonumbering is requested, set the unit to 0 instead of -1. This option is just for output, and "/dev/md-1" looks disconcerting. Submitted by: Wojciech A. Koszek
This commit is contained in:
parent
7e06d7bcbc
commit
541ce3c1af
@ -386,7 +386,7 @@ do_mdconfig_attach_au(const char *args, const enum md_types mdtype)
|
||||
|
||||
/* Receive the unit number. */
|
||||
if (norun) { /* Since we didn't run, we can't read. Fake it. */
|
||||
unit = -1;
|
||||
unit = 0;
|
||||
return;
|
||||
}
|
||||
sfd = fdopen(fd, "r");
|
||||
|
Loading…
x
Reference in New Issue
Block a user