diff options
author | phk <phk@FreeBSD.org> | 2003-04-21 19:38:33 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-04-21 19:38:33 +0000 |
commit | a8a7c6ab615821a4e4294eaf7b3adc8833696fee (patch) | |
tree | 4a573b68c534aee10b268f7a71572017772fbc16 /sys/sys/sun_disklabel.h | |
parent | d0c2ab56a56d3857fb2c29aa74033c9cc1ea50ed (diff) | |
download | FreeBSD-src-a8a7c6ab615821a4e4294eaf7b3adc8833696fee.zip FreeBSD-src-a8a7c6ab615821a4e4294eaf7b3adc8833696fee.tar.gz |
Add defines for number of partitions, raw partition index and size of
encoded data structure.
Diffstat (limited to 'sys/sys/sun_disklabel.h')
-rw-r--r-- | sys/sys/sun_disklabel.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 */ }; |