From f75269fefeabcb37f1d4afb80af03b86acc4cd87 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Thu, 22 Dec 2005 02:51:26 +0000 Subject: Set correct partition offset to 0 when initializing RAW_PART. ok deraadt@ --- sys/arch/mvme88k/mvme88k/disksubr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/arch/mvme88k') diff --git a/sys/arch/mvme88k/mvme88k/disksubr.c b/sys/arch/mvme88k/mvme88k/disksubr.c index 27fd747c69f..1b156ce7f02 100644 --- a/sys/arch/mvme88k/mvme88k/disksubr.c +++ b/sys/arch/mvme88k/mvme88k/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.28 2005/03/30 07:52:32 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.29 2005/12/22 02:51:24 krw Exp $ */ /* * Copyright (c) 1998 Steve Murphree, Jr. * Copyright (c) 1995 Dale Rahn. @@ -155,6 +155,7 @@ readdisklabel(dev, strat, lp, clp, spoofonly) } if (lp->d_partitions[i].p_size == 0) lp->d_partitions[i].p_size = lp->d_secperunit; + lp->d_partitions[i].p_offset = 0; /* don't read the on-disk label if we are in spoofed-only mode */ if (spoofonly) -- cgit v1.2.3