From: Thomas Weißschuh Date: Wed, 26 Oct 2022 14:19:04 +0000 (+0200) Subject: libblkid: zfs: report endianness X-Git-Tag: v2.39-rc1~453^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1efbaff22dfce1413c724e57a5af1f558b2fce60;p=thirdparty%2Futil-linux.git libblkid: zfs: report endianness --- diff --git a/libblkid/src/superblocks/zfs.c b/libblkid/src/superblocks/zfs.c index e7ca78c0d5..3baf6e1e29 100644 --- a/libblkid/src/superblocks/zfs.c +++ b/libblkid/src/superblocks/zfs.c @@ -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; } diff --git a/tests/expected/blkid/low-probe-zfs b/tests/expected/blkid/low-probe-zfs index f7e481b545..b20561814e 100644 --- a/tests/expected/blkid/low-probe-zfs +++ b/tests/expected/blkid/low-probe-zfs @@ -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