From: Thomas Weißschuh Date: Sat, 19 Nov 2022 19:53:11 +0000 (+0100) Subject: libblkid: exfat: report filesystem size X-Git-Tag: v2.39-rc1~415^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=60a5e8d8c2978d237100af3342637a7ebbaee2c0;p=thirdparty%2Futil-linux.git libblkid: exfat: report filesystem size --- diff --git a/libblkid/src/superblocks/exfat.c b/libblkid/src/superblocks/exfat.c index c07054ac43..4b6414fde9 100644 --- a/libblkid/src/superblocks/exfat.c +++ b/libblkid/src/superblocks/exfat.c @@ -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; } diff --git a/tests/expected/blkid/low-probe-exfat b/tests/expected/blkid/low-probe-exfat index 24d2cac5d8..e04b894ef3 100644 --- a/tests/expected/blkid/low-probe-exfat +++ b/tests/expected/blkid/low-probe-exfat @@ -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