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

index 692db5bfe381ac133804d6e4a414417d21a93908..92ab77a247949798c204507e43b834eb04c8685a 100644 (file)
@@ -56,6 +56,7 @@ static int probe_squashfs(blkid_probe pr, const struct blkid_idmag *mag)
        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));
+       blkid_probe_set_fssize(pr, le64_to_cpu(sq->bytes_used));
 
        return 0;
 }
index c8e19702967ccbe51102f73a2bb1b5ddd85dbe54..817d9fb046dc10448834f904d2030285357e6704 100644 (file)
@@ -1,5 +1,6 @@
 ID_FS_BLOCK_SIZE=131072
 ID_FS_FSBLOCKSIZE=131072
+ID_FS_FSSIZE=389
 ID_FS_TYPE=squashfs
 ID_FS_USAGE=filesystem
 ID_FS_VERSION=4.0