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

index 5da87b18f6d16308cce4e0cedd34022311da51e6..0c8d4ed37df690a6f1b9e5f846bd7158bc4ffb2d 100644 (file)
@@ -241,6 +241,8 @@ found:
 
        blkid_probe_set_fsblocksize(pr, bsize);
        blkid_probe_set_block_size(pr, bsize);
+       blkid_probe_set_fsendianness(pr, is_be ?
+                       BLKID_ENDIANNESS_BIG : BLKID_ENDIANNESS_LITTLE);
 
        return 0;
 }
index d771bc8d5744774e7660c04d95eacf8f06058ca7..32e2234365bf61cf23f7c78e373d38e26652dc70 100644 (file)
@@ -1,4 +1,5 @@
 ID_FS_BLOCK_SIZE=2048
+ID_FS_ENDIANNESS=LITTLE
 ID_FS_FSBLOCKSIZE=2048
 ID_FS_TYPE=ufs
 ID_FS_USAGE=filesystem