From d229e11ce7b30d7401599c40c23b9b328ca8a961 Mon Sep 17 00:00:00 2001 From: dd Date: Thu, 22 Dec 2005 10:36:58 +0000 Subject: 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 --- sbin/mdmfs/mdmfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin/mdmfs') 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"); -- cgit v1.1