Module Name:    src
Committed By:   kre
Date:           Thu Jul 21 09:19:54 UTC 2022

Modified Files:
        src/sbin/raidctl: rf_configure.c

Log Message:
PR bin/56917

If getfsspecname() fails that will usually mean that a NAME=wedge or
ROOT.x partition is unabailable.   raidframe specified unavailable
partitions as "absent" so in this case, pass "absent" rather than the
unaltered NAME= or ROOT.x string, which the kernel has no clue what
do do with, and doesn't configure the raid at all.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sbin/raidctl/rf_configure.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/raidctl/rf_configure.c
diff -u src/sbin/raidctl/rf_configure.c:1.36 src/sbin/raidctl/rf_configure.c:1.37
--- src/sbin/raidctl/rf_configure.c:1.36	Tue Jun 14 08:06:13 2022
+++ src/sbin/raidctl/rf_configure.c	Thu Jul 21 09:19:53 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: rf_configure.c,v 1.36 2022/06/14 08:06:13 kre Exp $ */
+/*	$NetBSD: rf_configure.c,v 1.37 2022/07/21 09:19:53 kre Exp $ */
 
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
@@ -49,7 +49,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: rf_configure.c,v 1.36 2022/06/14 08:06:13 kre Exp $");
+__RCSID("$NetBSD: rf_configure.c,v 1.37 2022/07/21 09:19:53 kre Exp $");
 #endif
 
 
@@ -278,7 +278,7 @@ rf_MakeConfig(char *configname, RF_Confi
 			warnx("Config file error: warning: unable to "
 			    "get device file for disk at col %d: %s",
 			    c, b1);
-			b = buf;
+			b = "absent";
 		}
 
 		strlcpy(cfgPtr->devnames[0][c], b,

Reply via email to