FreeBSD/sys/geom/part/g_part_gpt.c
/*
 * Under Boot Camp the PMBR partition (type 0xEE) doesn't cover the
 * whole disk anymore. Rather, it covers the GPT table and the EFI
 * system partition only. This way the HFS+ partition and any FAT
 * partitions can be added to the MBR without creating an overlap.
 */
Under Boot Camp the PMBR partition (type 0xEE) doesn't cover the
whole disk anymore. Rather, it covers the GPT table and the EFI
system partition only. This way the HFS+ partition and any FAT
partitions can be added to the MBR without creating an overlap.
Under Boot Camp the PMBR partition ( type 0xEE ) doesn ' t cover the whole disk anymore . Rather it covers the GPT table and the EFI system partition only . This way the HFS + partition and any FAT partitions can be added to the MBR without creating an overlap .
static int
gpt_is_bootcamp(struct g_part_gpt_table *table, const char *provname)
{
	uint8_t *p;
	p = table->mbr + DOSPARTOFF;
	if (p[4] != 0xee || le32dec(p + 8) != 1)
		return (0);
	p += DOSPARTSIZE;
	if (p[4] != 0xaf)
		return (0);
	printf("GEOM: %s: enabling Boot Camp\n", provname);
	return (1);
}
static int gpt_is_bootcamp ( struct g_part_gpt_table * table , const char * provname ) { uint8_t * p ; p = table -> mbr + DOSPARTOFF ; if ( p [ 4 ] != 0xee || le32dec ( p + 8 ) != 1 ) return ( 0 ) ; p += DOSPARTSIZE ; if ( p [ 4 ] != 0xaf ) return ( 0 ) ; printf ( " \n " , provname ) ; return ( 1 ) ; }
Under Boot Camp the PMBR partition (type 0xEE) doesn't cover the
 whole disk anymore.
Under Boot Camp the PMBR partition ( type 0xEE ) doesn ' t cover the whole disk anymore .