From a8a7c6ab615821a4e4294eaf7b3adc8833696fee Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 21 Apr 2003 19:38:33 +0000 Subject: Add defines for number of partitions, raw partition index and size of encoded data structure. --- sys/sys/sun_disklabel.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/sys/sun_disklabel.h') diff --git a/sys/sys/sun_disklabel.h b/sys/sys/sun_disklabel.h index 99c5c3a..5c6a0a0 100644 --- a/sys/sys/sun_disklabel.h +++ b/sys/sys/sun_disklabel.h @@ -50,6 +50,9 @@ */ #define SUN_DKMAGIC 55998 +#define SUN_NPART 8 +#define SUN_RAWPART 2 +#define SUN_SIZE 512 /* geometry info */ struct sun_dkgeom { @@ -95,7 +98,7 @@ struct sun_disklabel { /* total size = 512 bytes */ u_int16_t sl_ntracks; /* tracks per cylinder */ u_int16_t sl_nsectors; /* sectors per track */ char sl_xxx4[4]; - struct sun_dkpart sl_part[8]; /* partition layout */ + struct sun_dkpart sl_part[SUN_NPART]; /* partition layout */ u_int16_t sl_magic; /* == SUN_DKMAGIC */ u_int16_t sl_cksum; /* xor checksum of all shorts */ }; -- cgit v1.1