From: deraadt Date: Tue, 14 Jan 1997 00:46:42 +0000 (+0000) Subject: RAW_PART X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=28d3197a4a5cb7cb38480d7617ab4bb73c761d43;p=openbsd RAW_PART --- diff --git a/sys/arch/arc/arc/disksubr.c b/sys/arch/arc/arc/disksubr.c index e1c185c5ba9..034f63be1f0 100644 --- a/sys/arch/arc/arc/disksubr.c +++ b/sys/arch/arc/arc/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.6 1996/12/09 15:54:58 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.7 1997/01/14 00:46:42 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -409,7 +409,7 @@ bounds_check_with_label(bp, lp, wlabel) int wlabel; { struct partition *p = lp->d_partitions + DISKPART(bp->b_dev); - int labelsector = lp->d_partitions[2].p_offset + LABELSECTOR; + int labelsector = lp->d_partitions[RAW_PART].p_offset + LABELSECTOR; int sz; sz = howmany(bp->b_bcount, lp->d_secsize); diff --git a/sys/arch/i386/i386/disksubr.c b/sys/arch/i386/i386/disksubr.c index 8198bad893a..26cfdd13c28 100644 --- a/sys/arch/i386/i386/disksubr.c +++ b/sys/arch/i386/i386/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.15 1996/12/09 15:54:57 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.16 1997/01/14 00:46:45 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -409,7 +409,7 @@ bounds_check_with_label(bp, lp, wlabel) int wlabel; { struct partition *p = lp->d_partitions + DISKPART(bp->b_dev); - int labelsector = lp->d_partitions[2].p_offset + LABELSECTOR; + int labelsector = lp->d_partitions[RAW_PART].p_offset + LABELSECTOR; int sz; sz = howmany(bp->b_bcount, lp->d_secsize);