From: Thomas Weißschuh Date: Wed, 26 Oct 2022 14:07:35 +0000 (+0200) Subject: libblkid: befs: report endianness X-Git-Tag: v2.39-rc1~453^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7ad8f7e80b328206fa2534ff11d98b6dd4235cfc;p=thirdparty%2Futil-linux.git libblkid: befs: report endianness --- diff --git a/libblkid/src/superblocks/befs.c b/libblkid/src/superblocks/befs.c index 1ba0e10ae2..8de697ddc0 100644 --- a/libblkid/src/superblocks/befs.c +++ b/libblkid/src/superblocks/befs.c @@ -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; } diff --git a/tests/expected/blkid/low-probe-befs b/tests/expected/blkid/low-probe-befs index 738114769f..a793b4a886 100644 --- a/tests/expected/blkid/low-probe-befs +++ b/tests/expected/blkid/low-probe-befs @@ -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