Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp300/hp300 In the provisional disklabel (which wil...
details: https://anonhg.NetBSD.org/src/rev/d3bf926e70ba
branches: trunk
changeset: 508834:d3bf926e70ba
user: he <he%NetBSD.org@localhost>
date: Fri Apr 20 16:58:19 2001 +0000
description:
In the provisional disklabel (which will be used if there is no
valid on-device disk label), set d_npartitions to RAW_PART+1 instead
of to 1. Discovered as a build bug on the netbsd-1-5 branch, affecting
miniroot construction and vnd devices; RAW_PART went missing from the
in-core disklabel, and eventually also the on-device label.
diffstat:
sys/arch/hp300/hp300/disksubr.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 30103c6742c5 -r d3bf926e70ba sys/arch/hp300/hp300/disksubr.c
--- a/sys/arch/hp300/hp300/disksubr.c Fri Apr 20 16:52:04 2001 +0000
+++ b/sys/arch/hp300/hp300/disksubr.c Fri Apr 20 16:58:19 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disksubr.c,v 1.10 2000/11/20 08:24:14 chs Exp $ */
+/* $NetBSD: disksubr.c,v 1.11 2001/04/20 16:58:19 he Exp $ */
/*
* Copyright (c) 1982, 1986, 1988, 1993
@@ -68,7 +68,7 @@
if (lp->d_secperunit == 0)
lp->d_secperunit = 0x1fffffff;
- lp->d_npartitions = 1;
+ lp->d_npartitions = RAW_PART + 1;
if (lp->d_partitions[0].p_size == 0)
lp->d_partitions[0].p_size = 0x1fffffff;
lp->d_partitions[0].p_offset = 0;
Home |
Main Index |
Thread Index |
Old Index