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

index e7ca78c0d5d28215372e02549e1a3dd692cd9f28..3baf6e1e29e5985409ac8d50e4856ef0433f5b45 100644 (file)
@@ -317,6 +317,9 @@ static int probe_zfs(blkid_probe pr,
                                (unsigned char *) &ub->ub_magic))
                return 1;
 
+       blkid_probe_set_fsendianness(pr, !swab_endian ?
+                       BLKID_ENDIANNESS_NATIVE : BLKID_ENDIANNESS_OTHER);
+
        return 0;
 }
 
index f7e481b545a210fe2673a72d54830664ce66e942..b20561814ecbd8e72e7add3df2f4a52a120bd5f4 100644 (file)
@@ -1,4 +1,5 @@
 ID_FS_BLOCK_SIZE=512
+ID_FS_ENDIANNESS=LITTLE
 ID_FS_FSBLOCKSIZE=512
 ID_FS_LABEL=tank
 ID_FS_LABEL_ENC=tank