On Tue, Mar 1, 2011 at 4:15 AM, Karel Zak <kzak@xxxxxxxxxx> wrote: > On Mon, Feb 28, 2011 at 11:27:34PM -0500, Andrew Lutomirski wrote: >> I'm playing around with rewriting efibootmgr, and I want it to use >> libblkid to figure out how to label disks. Unfortunately, there's a >> bit of byte order confusion. libblkid treats gpt guids like they're >> big-endian, which seems to contradict the spec and all other software. > > .. because UUID is according to all standards 16 byte array, except > Intel EFI standard... > >> This means that the the first three fields should be byte-swapped. >> Wikipedia's page on GPT agrees. > > Yes, you're right. Good catch. > >> Should I submit a patch to fix up the byte order? I don't think that >> fixing this will break anyone's boot since findfs and friends seem to >> use UUID not PART_ENTRY_UUID. > > Fixed in master branch, see the patch below (it's based on GNU parted). > Works for me. Thanks! --Andy -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html