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:
Dima Dorfman 2005-12-22 10:36:58 +00:00
parent 7e06d7bcbc
commit 541ce3c1af

View File

@ -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");