mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Add definitions for location of the magic sequence and the length
of a partition entry.
This commit is contained in:
parent
9657a0c35e
commit
073834e69b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113452
@ -41,8 +41,12 @@
|
||||
|
||||
#define DOSBBSECTOR 0 /* DOS boot block relative sector number */
|
||||
#define DOSPARTOFF 446
|
||||
#define DOSPARTSIZE 16
|
||||
#define NDOSPART 4
|
||||
#define NEXTDOSPART 32
|
||||
#define DOSMAGICOFFSET 510
|
||||
#define DOSMAGIC 0xAA55
|
||||
|
||||
#define DOSPTYP_386BSD 0xa5 /* 386BSD partition type */
|
||||
#define DOSPTYP_LINSWP 0x82 /* Linux swap partition */
|
||||
#define DOSPTYP_LINUX 0x83 /* Linux partition */
|
||||
@ -63,7 +67,7 @@ struct dos_partition {
|
||||
u_int32_t dp_size; /* partition size in sectors */
|
||||
};
|
||||
#ifdef CTASSERT
|
||||
CTASSERT(sizeof (struct dos_partition) == 16);
|
||||
CTASSERT(sizeof (struct dos_partition) == DOSPARTSIZE);
|
||||
#endif
|
||||
|
||||
void dos_partition_dec(void const *pp, struct dos_partition *d);
|
||||
|
Loading…
Reference in New Issue
Block a user