Re: [PATCH 1/8] partitions/efi: use lba-aware partition records

From: Karel Zak
Date: Mon Sep 02 2013 - 06:11:03 EST


On Mon, Aug 05, 2013 at 10:21:09PM -0700, Davidlohr Bueso wrote:
>
> +typedef struct _gpt_record {
> + u8 boot_indicator; /* unused by EFI, set to 0x80 for bootable */
> + u8 start_head; /* unused by EFI, pt start in CHS */
> + u8 start_sector; /* unused by EFI, pt start in CHS */
> + u8 start_track;
> + u8 os_type; /* EFI and legacy non-EFI OS types */
> + u8 end_head; /* unused by EFI, pt end in CHS */
> + u8 end_sector; /* unused by EFI, pt end in CHS */
> + u8 end_track; /* unused by EFI, pt end in CHS */
> + __le32 starting_lba; /* used by EFI - start addr of the on disk pt */
> + __le32 size_in_lba; /* used by EFI - size of pt in LBA */
> +} __attribute__ ((packed)) gpt_record;
> +

Maybe it would be better to rename this struct to "gpt_mbr_record" to
make it more obvious.

Karel

--
Karel Zak <kzak@xxxxxxxxxx>
http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/