From d6448bf3ca880c1ab8cd60de5147e4b15f64bb40 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Fri, 11 Aug 2006 21:32:41 +0000 Subject: Use d_secperunit rather than 0x1fffffff as the default value for RAW_PART's p_size. Since d_secperunit is initialized to 0x1fffffff if not specified there should be no need to use the magic number again. And if d_secperunit was specified then that value should be used instead of the magic number. This was already being done for hp300, luna88k, mac68k, mvme68k, mvme88k. Should be a no-op. --- sys/arch/amd64/amd64/disksubr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/amd64') diff --git a/sys/arch/amd64/amd64/disksubr.c b/sys/arch/amd64/amd64/disksubr.c index 29b0b067163..f8d53f28a50 100644 --- a/sys/arch/amd64/amd64/disksubr.c +++ b/sys/arch/amd64/amd64/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.9 2006/07/01 16:50:32 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.10 2006/08/11 21:32:39 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -90,7 +90,7 @@ readdisklabel(dev, strat, lp, osdep, spoofonly) lp->d_partitions[i].p_offset = 0; } if (lp->d_partitions[i].p_size == 0) - lp->d_partitions[i].p_size = 0x1fffffff; + lp->d_partitions[i].p_size = lp->d_secperunit; lp->d_partitions[i].p_offset = 0; /* get a buffer and initialize it */ -- cgit v1.2.3