diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-12-22 02:51:26 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-12-22 02:51:26 +0000 |
commit | f75269fefeabcb37f1d4afb80af03b86acc4cd87 (patch) | |
tree | 6e8a0e51c5f5e3db506cd80cae55d69cf01c2d3c /sys/arch/sparc64 | |
parent | ab3370931574c5463382d7a54fc34c19ab2e7e17 (diff) |
Set correct partition offset to 0 when initializing RAW_PART.
ok deraadt@
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/sparc64/disksubr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/sparc64/disksubr.c b/sys/arch/sparc64/sparc64/disksubr.c index 2442f8e71d1..983e0a4dded 100644 --- a/sys/arch/sparc64/sparc64/disksubr.c +++ b/sys/arch/sparc64/sparc64/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.14 2005/09/21 21:08:35 miod Exp $ */ +/* $OpenBSD: disksubr.c,v 1.15 2005/12/22 02:51:25 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.13 2000/12/17 22:39:18 pk Exp $ */ /* @@ -102,7 +102,7 @@ readdisklabel(dev, strat, lp, clp, spoofonly) } if (lp->d_partitions[i].p_size == 0) lp->d_partitions[i].p_size = 0x1fffffff; - lp->d_partitions[0].p_offset = 0; + lp->d_partitions[i].p_offset = 0; lp->d_bbsize = 8192; lp->d_sbsize = 64*1024; /* XXX ? */ |