Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/raidctl PR bin/56917



details:   https://anonhg.NetBSD.org/src/rev/e9108f910875
branches:  trunk
changeset: 368600:e9108f910875
user:      kre <kre%NetBSD.org@localhost>
date:      Thu Jul 21 09:19:53 2022 +0000

description:
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.

diffstat:

 sbin/raidctl/rf_configure.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 52d8eb4423f2 -r e9108f910875 sbin/raidctl/rf_configure.c
--- a/sbin/raidctl/rf_configure.c       Thu Jul 21 08:07:56 2022 +0000
+++ b/sbin/raidctl/rf_configure.c       Thu Jul 21 09:19:53 2022 +0000
@@ -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 @@
                        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,



Home | Main Index | Thread Index | Old Index