From 8295d8475b46b15dd52997196fe7aa72de62a90a Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 29 Mar 1998 21:30:20 +0000 Subject: [PATCH] writedisklabel() always used the offset of the first partition in the MBR to address the disklabel even if NetBSD resides on another partition. --- sys/arch/i386/i386/disksubr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/i386/i386/disksubr.c b/sys/arch/i386/i386/disksubr.c index 5052fe81e840..acd24f9772d1 100644 --- a/sys/arch/i386/i386/disksubr.c +++ b/sys/arch/i386/i386/disksubr.c @@ -1,4 +1,4 @@ -/* $NetBSD: disksubr.c,v 1.27 1998/03/17 21:27:25 cgd Exp $ */ +/* $NetBSD: disksubr.c,v 1.28 1998/03/29 21:30:20 tron Exp $ */ /* * Copyright (c) 1982, 1986, 1988 Regents of the University of California. @@ -375,8 +375,8 @@ writedisklabel(dev, strat, lp, osdep) if (ourdp) { /* need sector address for SCSI/IDE, cylinder for ESDI/ST506/RLL */ - dospartoff = dp->dp_start; - cyl = DPCYL(dp->dp_scyl, dp->dp_ssect); + dospartoff = ourdp->dp_start; + cyl = DPCYL(ourdp->dp_scyl, ourdp->dp_ssect); } }