diff options
author | Dima Dorfman <dd@FreeBSD.org> | 2005-12-22 10:36:58 +0000 |
---|---|---|
committer | Dima Dorfman <dd@FreeBSD.org> | 2005-12-22 10:36:58 +0000 |
commit | 541ce3c1afd91b72ce7c411032a7c00e2b8122e2 (patch) | |
tree | d89e5ed400859fdbb9efabcc6ccbae154bf7e064 /sbin/mdmfs | |
parent | 7e06d7bcbc39518d9984a07ab19116a9f050a176 (diff) | |
download | src-test-541ce3c1afd91b72ce7c411032a7c00e2b8122e2.tar.gz src-test-541ce3c1afd91b72ce7c411032a7c00e2b8122e2.zip |
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
Notes
Notes:
svn path=/head/; revision=153637
Diffstat (limited to 'sbin/mdmfs')
-rw-r--r-- | sbin/mdmfs/mdmfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/mdmfs/mdmfs.c b/sbin/mdmfs/mdmfs.c index 4ea4709fb2f02..9d4095cf004ca 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"); |