Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/installboot/arch Make it an error for the partition...



details:   https://anonhg.NetBSD.org/src/rev/f491897e26a9
branches:  trunk
changeset: 772580:f491897e26a9
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Jan 09 11:44:53 2012 +0000

description:
Make it an error for the partition to exceed the PDC limit.

Inspired by PR/45742

diffstat:

 usr.sbin/installboot/arch/hp700.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 0f6b3de77f48 -r f491897e26a9 usr.sbin/installboot/arch/hp700.c
--- a/usr.sbin/installboot/arch/hp700.c Mon Jan 09 11:20:20 2012 +0000
+++ b/usr.sbin/installboot/arch/hp700.c Mon Jan 09 11:44:53 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hp700.c,v 1.4 2008/04/28 20:24:16 martin Exp $ */
+/*     $NetBSD: hp700.c,v 1.5 2012/01/09 11:44:53 skrll Exp $  */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #if !defined(__lint)
-__RCSID("$NetBSD: hp700.c,v 1.4 2008/04/28 20:24:16 martin Exp $");
+__RCSID("$NetBSD: hp700.c,v 1.5 2012/01/09 11:44:53 skrll Exp $");
 #endif /* !__lint */
 
 /* We need the target disklabel.h, not the hosts one..... */
@@ -178,9 +178,10 @@
        } else if (be32toh(label.l.d_partitions[0].p_offset) +
            be32toh(label.l.d_partitions[0].p_size) >
            ((unsigned)2*1024*1024*1024) / secsize) {
-               warnx("WARNING: Partition `a' of `%s' exceeds 2GB boundary.",
+               warnx("Partition `a' of `%s' exceeds 2GB boundary.",
                    params->filesystem);
-               warnx("WARNING: It won't boot since hp700 PDC can handle only 2GB.");
+               warnx("It won't boot since hp700 PDC can handle only 2GB.");
+               goto done;
        }
 
        /* read boot loader */



Home | Main Index | Thread Index | Old Index