On Friday 08 May 2015, Ruediger Meier wrote: > From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> > > The new libfdisk/gpt test (4a4a0927) discovered that we read and > write partition attributes wrongly on BE systems. To be more clear ... this does not mean that 4a4a0927 is broken but the test shows that sfdisk (and fdisk) is. Introduced at least since 01086b80 (2014-03-13) and c77ba531 (2014-10-02). Some notes how to reproduce. ## create gpt image $ truncate -s 10M img $ ./sfdisk --unit S img <<EOF label: gpt size=5M, attrs="" EOF ## Both commands should do the same $ ./sfdisk --part-attrs img 1 RequiredPartiton $ ./test_fdisk_gpt --setattr img 1 "0x0000000000000001" ## So that for both cases and any endianess we should get $ ./sfdisk --part-attrs img 1 RequiredPartiton ## and $ ./test_fdisk_gpt --getattr img 1 1: 0x0000000000000001 ## on disk it's always little endian $ hexdump -C img | grep 009fbe30 009fbe30 01 00 00 00 00 00 00 00 .... cu, Rudi -- 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