]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: Fix typo in probe_zfs
authorTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 8 Apr 2026 19:57:46 +0000 (21:57 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 8 Apr 2026 19:57:46 +0000 (21:57 +0200)
It should be swap_endian, not swab_endian.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
libblkid/src/superblocks/zfs.c

index 025110af6969268b6eb0562966e7d8a77b7c0ea9..26b54bb7933cff5d17535336bd2980b5b14647f8 100644 (file)
@@ -303,7 +303,7 @@ static int probe_zfs(blkid_probe pr,
 #else
        int host_endian = 0;
 #endif
-       int swab_endian = 0;
+       int swap_endian = 0;
        loff_t offset = 0;
        int label_no;
        struct nvs_header_t *label = NULL;
@@ -336,7 +336,7 @@ static int probe_zfs(blkid_probe pr,
                        continue;
 
                if (host_endian != label->nvh_endian)
-                       swab_endian = 1;
+                       swap_endian = 1;
 
                if (zfs_extract_guid_name(pr, label, VDEV_PHYS_SIZE, true)) {
                        found_label = true;
@@ -356,7 +356,7 @@ static int probe_zfs(blkid_probe pr,
            (unsigned char *) label))
                return (1);
 
-       blkid_probe_set_fsendianness(pr, !swab_endian ?
+       blkid_probe_set_fsendianness(pr, !swap_endian ?
                        BLKID_ENDIANNESS_NATIVE : BLKID_ENDIANNESS_OTHER);
 
        return (0);