]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: squashfs: report block sizes
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 29 Nov 2022 02:44:11 +0000 (03:44 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 29 Nov 2022 02:44:11 +0000 (03:44 +0100)
libblkid/src/superblocks/squashfs.c
tests/expected/blkid/low-probe-squashfs4

index 8304c7d7904dbc4ac30062fcc05b9342160e555e..692db5bfe381ac133804d6e4a414417d21a93908 100644 (file)
@@ -54,6 +54,8 @@ static int probe_squashfs(blkid_probe pr, const struct blkid_idmag *mag)
                return 1;
 
        blkid_probe_sprintf_version(pr, "%u.%u", vermaj, vermin);
+       blkid_probe_set_fsblocksize(pr, le32_to_cpu(sq->block_size));
+       blkid_probe_set_block_size(pr, le32_to_cpu(sq->block_size));
 
        return 0;
 }
index e1b9717f02bf7a7d053bce26da14bb6523371745..c8e19702967ccbe51102f73a2bb1b5ddd85dbe54 100644 (file)
@@ -1,3 +1,5 @@
+ID_FS_BLOCK_SIZE=131072
+ID_FS_FSBLOCKSIZE=131072
 ID_FS_TYPE=squashfs
 ID_FS_USAGE=filesystem
 ID_FS_VERSION=4.0