summaryrefslogtreecommitdiffstats
path: root/sbin/mdmfs
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2005-12-22 10:36:58 +0000
committerdd <dd@FreeBSD.org>2005-12-22 10:36:58 +0000
commitd229e11ce7b30d7401599c40c23b9b328ca8a961 (patch)
treed89e5ed400859fdbb9efabcc6ccbae154bf7e064 /sbin/mdmfs
parent5ebe38d66780d5030bfbca6a38a7a71e9dc0f8a6 (diff)
downloadFreeBSD-src-d229e11ce7b30d7401599c40c23b9b328ca8a961.zip
FreeBSD-src-d229e11ce7b30d7401599c40c23b9b328ca8a961.tar.gz
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
Diffstat (limited to 'sbin/mdmfs')
-rw-r--r--sbin/mdmfs/mdmfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/mdmfs/mdmfs.c b/sbin/mdmfs/mdmfs.c
index 4ea4709..9d4095c 100644
--- a/sbin/mdmfs/mdmfs.c
+++ b/sbin/mdmfs/mdmfs.c
@@ -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");
OpenPOWER on IntegriCloud