summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r--sys/arch/hppa/hppa/disksubr.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/hppa/hppa/disksubr.c b/sys/arch/hppa/hppa/disksubr.c
index 8c46091d841..df0df856259 100644
--- a/sys/arch/hppa/hppa/disksubr.c
+++ b/sys/arch/hppa/hppa/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.72 2008/06/12 06:58:34 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.73 2009/06/04 21:13:01 deraadt Exp $ */
/*
* Copyright (c) 1999 Michael Shalayeff
@@ -213,6 +213,9 @@ finished:
if (partoffp)
*partoffp = fsoff;
+ DL_SETBSTART(lp, fsoff);
+ DL_SETBEND(lp, DL_GETDSIZE(lp)); /* XXX */
+
if (spoofonly)
goto done;
@@ -227,7 +230,8 @@ finished:
goto done;
}
- return checkdisklabel(bp->b_data + LABELOFFSET, lp);
+ return checkdisklabel(bp->b_data + LABELOFFSET, lp, fsoff,
+ DL_GETDSIZE(lp)); /* XXX */
done:
if (dbp) {