From 28d3197a4a5cb7cb38480d7617ab4bb73c761d43 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 14 Jan 1997 00:46:42 +0000 Subject: [PATCH] RAW_PART --- sys/arch/arc/arc/disksubr.c | 4 ++-- sys/arch/i386/i386/disksubr.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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); -- 2.20.1