summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/include/sun_disklabel.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-11 13:36:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-11 13:36:13 +0000
commitd9936f3810c68f11e5df7bd663f2f1d8739125cd (patch)
treea4e13eae9b41da616186a420fe7b1282b119aeb8 /sys/arch/sparc/include/sun_disklabel.h
parent95b8c160e9062f12c2d085b55b37d7ac02647055 (diff)
SUNXPART always; also one case of MAXPARTITIONS not being there
Diffstat (limited to 'sys/arch/sparc/include/sun_disklabel.h')
-rw-r--r--sys/arch/sparc/include/sun_disklabel.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/sys/arch/sparc/include/sun_disklabel.h b/sys/arch/sparc/include/sun_disklabel.h
index 7556bd4c7cd..9be70d64e4e 100644
--- a/sys/arch/sparc/include/sun_disklabel.h
+++ b/sys/arch/sparc/include/sun_disklabel.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sun_disklabel.h,v 1.5 1996/09/12 04:33:28 downsj Exp $ */
+/* $OpenBSD: sun_disklabel.h,v 1.6 1996/12/11 13:36:11 deraadt Exp $ */
/* $NetBSD: sun_disklabel.h,v 1.6 1996/01/07 22:03:09 thorpej Exp $ */
/*
@@ -87,19 +87,15 @@ struct sun_dkpart {
long sdkp_nsectors; /* number of sectors */
};
+#define SUNXPART 8
+#define SL_XPMAG (0x199d1fe2+SUNXPART)
+
struct sun_disklabel { /* total size = 512 bytes */
char sl_text[128];
-#if MAXPARTITIONS > 8
-#define SUNXPART (MAXPARTITIONS-8)
u_long sl_xpsum; /* additive cksum, [sl_xpmag,sl_xxx1) */
u_long sl_xpmag; /* "extended" magic number */
-#define SL_XPMAG (0x199d1fe2+SUNXPART)
struct sun_dkpart sl_xpart[SUNXPART]; /* "extended" partitions, i through p */
char sl_xxx1[292-8-(8*SUNXPART)]; /* [292] including sl_x* */
-#else
-#define SUNXPART 0
- char sl_xxx1[292];
-#endif
u_short sl_rpm; /* rotational speed */
u_short sl_pcylinders; /* number of physical cyls */
u_short sl_sparespercyl; /* spare sectors per cylinder */