Re: [PATCH RESEND] block: store GPT attributes as a raw value

From: Davidlohr Bueso

Date: Thu Sep 10 2026 - 13:56:49 EST


On 2026-09-08 11:58, Vincent Mailhol wrote:
struct _gpt_entry_attributes currently models the GPT partition entry
attributes field with bitfields. This is broken on machines using the
__BIG_ENDIAN_BITFIELD ABI because GPT always stores the attributes on
disk as a 64-bit little-endian.

No current code consumes individual fields from that structure. So just
remove struct _gpt_entry_attributes entirely and replace it by an __le64
value in struct _gpt_entry instead. This lets users apply endian-aware
masks explicitly when inspecting attribute bits.

Signed-off-by: Vincent Mailhol <mailhol@xxxxxxxxxx>

Acked-by: Davidlohr Bueso <dave@xxxxxxxxxxxx>