Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sandpoint/stand/altboot Comment improvement. altboo...



details:   https://anonhg.NetBSD.org/src/rev/43aab0a3f52d
branches:  trunk
changeset: 779033:43aab0a3f52d
user:      nisimura <nisimura%NetBSD.org@localhost>
date:      Fri Apr 27 00:35:43 2012 +0000

description:
Comment improvement. altboot(8) is now aware of the disk removal
for mirrored drive configuration.

diffstat:

 sys/arch/sandpoint/stand/altboot/main.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r 013fd2615be5 -r 43aab0a3f52d sys/arch/sandpoint/stand/altboot/main.c
--- a/sys/arch/sandpoint/stand/altboot/main.c   Thu Apr 26 23:34:09 2012 +0000
+++ b/sys/arch/sandpoint/stand/altboot/main.c   Fri Apr 27 00:35:43 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.19 2012/04/26 19:59:37 phx Exp $ */
+/* $NetBSD: main.c,v 1.20 2012/04/27 00:35:43 nisimura Exp $ */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -272,11 +272,11 @@
                        break;  /* break on first unknown string */
        }
 
+       /*
+        * If no device name is given, we construct a list of drives
+        * which have valid disklabels.
+        */
        if (n >= argc) {
-               /*
-                * If no device name is given we construct a list of drives
-                * which have valid disklabels.
-                */
                n = 0;
                argc = 0;
                argv = alloc(MAX_UNITS * (sizeof(char *) + sizeof("wdN:")));
@@ -295,6 +295,7 @@
                }
        }
 
+       /* try to boot off kernel from the drive list */
        while (n < argc) {
                bname = argv[n++];
 



Home | Main Index | Thread Index | Old Index