]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: exfat: report filesystem size
authorThomas Weißschuh <thomas@t-8ch.de>
Sat, 19 Nov 2022 19:53:11 +0000 (20:53 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Sun, 20 Nov 2022 21:48:01 +0000 (22:48 +0100)
libblkid/src/superblocks/exfat.c
tests/expected/blkid/low-probe-exfat

index c07054ac433aee25103c848e4ac2a2472daedfe9..4b6414fde9f9ed2f9bcb3ab44df74e9df02d275d 100644 (file)
@@ -198,6 +198,7 @@ static int probe_exfat(blkid_probe pr, const struct blkid_idmag *mag)
 
        blkid_probe_set_fsblocksize(pr, BLOCK_SIZE(sb));
        blkid_probe_set_block_size(pr, BLOCK_SIZE(sb));
+       blkid_probe_set_fssize(pr, BLOCK_SIZE(sb) * le64_to_cpu(sb->VolumeLength));
 
        return BLKID_PROBE_OK;
 }
index 24d2cac5d8b2d1057e1ecbf0714e339c4d32c92a..e04b894ef3d71827d12d85403e4a5639e7cde6a2 100644 (file)
@@ -1,5 +1,6 @@
 ID_FS_BLOCK_SIZE=512
 ID_FS_FSBLOCKSIZE=512
+ID_FS_FSSIZE=1048064
 ID_FS_LABEL=Новый_том
 ID_FS_LABEL_ENC=Новый\x20том
 ID_FS_TYPE=exfat