diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-05-21 23:45:49 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-05-21 23:45:49 +0000 |
commit | ae8a031e28803ad11c91125bd1523348d0f9aba7 (patch) | |
tree | bdb340ca3ea84c5ced44c0a90436c136a706dcf3 /sys/arch/sparc64/stand | |
parent | a8bf30cd22bf1b839f7e9bffcd664791d8b3b2ae (diff) |
The only value that d_npartitions should have is MAXPARTITIONS.
Diffstat (limited to 'sys/arch/sparc64/stand')
-rw-r--r-- | sys/arch/sparc64/stand/ofwboot/ofdev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc64/stand/ofwboot/ofdev.c b/sys/arch/sparc64/stand/ofwboot/ofdev.c index e03f7d7bebc..c5d10ad8de8 100644 --- a/sys/arch/sparc64/stand/ofwboot/ofdev.c +++ b/sys/arch/sparc64/stand/ofwboot/ofdev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ofdev.c,v 1.9 2007/05/29 06:28:15 otto Exp $ */ +/* $OpenBSD: ofdev.c,v 1.10 2009/05/21 23:45:48 krw Exp $ */ /* $NetBSD: ofdev.c,v 1.1 2000/08/20 14:58:41 mrg Exp $ */ /* @@ -285,7 +285,7 @@ disklabel_sun_to_bsd(cp, lp) lp->d_rpm = sl->sl_rpm; lp->d_interleave = sl->sl_interleave; - lp->d_npartitions = 8; + lp->d_npartitions = MAXPARTITIONS; /* These are as defined in <ufs/ffs/fs.h> */ lp->d_bbsize = 8192; /* XXX */ lp->d_sbsize = 8192; /* XXX */ @@ -346,7 +346,7 @@ search_label(devp, off, buf, lp, off0) /* minimal requirements for archetypal disk label */ if (lp->d_secperunit == 0) lp->d_secperunit = 0x1fffffff; - lp->d_npartitions = 1; + lp->d_npartitions = MAXPARTITIONS; if (lp->d_partitions[0].p_size == 0) lp->d_partitions[0].p_size = 0x1fffffff; lp->d_partitions[0].p_offset = 0; |