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

index 8447814f45963faba826f1c8dcf60c0b8a27c366..c68ade9c9309d8acdb9a91e2e764066d795337a0 100644 (file)
@@ -150,6 +150,8 @@ static int probe_minix(blkid_probe pr,
        blkid_probe_sprintf_version(pr, "%d", version);
        blkid_probe_set_fsblocksize(pr, block_size);
        blkid_probe_set_block_size(pr, block_size);
+       blkid_probe_set_fsendianness(pr, !swabme ?
+                       BLKID_ENDIANNESS_NATIVE : BLKID_ENDIANNESS_OTHER);
        return 0;
 }
 
index c6da3c195f0c4c74e3d5c97e7fca025868be24ea..de0ad8d13c18b370946f68a4dfd28172f1268685 100644 (file)
@@ -1,4 +1,5 @@
 ID_FS_BLOCK_SIZE=1024
+ID_FS_ENDIANNESS=BIG
 ID_FS_FSBLOCKSIZE=1024
 ID_FS_TYPE=minix
 ID_FS_USAGE=filesystem
index c6da3c195f0c4c74e3d5c97e7fca025868be24ea..bcfbf3f844538217bcb65eb2c7731b55ded4e6e3 100644 (file)
@@ -1,4 +1,5 @@
 ID_FS_BLOCK_SIZE=1024
+ID_FS_ENDIANNESS=LITTLE
 ID_FS_FSBLOCKSIZE=1024
 ID_FS_TYPE=minix
 ID_FS_USAGE=filesystem