]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: befs: report endianness
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 26 Oct 2022 14:07:35 +0000 (16:07 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 26 Oct 2022 14:36:59 +0000 (16:36 +0200)
libblkid/src/superblocks/befs.c
tests/expected/blkid/low-probe-befs

index 1ba0e10ae26f45906d42f76593ea175c2e0827c8..8de697ddc0031e89d5d93e531120a7c7623097f4 100644 (file)
@@ -523,6 +523,8 @@ static int probe_befs(blkid_probe pr, const struct blkid_idmag *mag)
 
        blkid_probe_set_fsblocksize(pr, block_size);
        blkid_probe_set_block_size(pr, block_size);
+       blkid_probe_set_fsendianness(pr,
+                       fs_le ? BLKID_ENDIANNESS_LITTLE : BLKID_ENDIANNESS_BIG);
 
        return BLKID_PROBE_OK;
 }
index 738114769fd0e6ac9c182a4a0f217020064f6b6c..a793b4a886fe7b0ad931e147ce32b83df4f3e630 100644 (file)
@@ -1,4 +1,5 @@
 ID_FS_BLOCK_SIZE=1024
+ID_FS_ENDIANNESS=LITTLE
 ID_FS_FSBLOCKSIZE=1024
 ID_FS_LABEL=befs_test
 ID_FS_LABEL_ENC=befs_test