]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: ntfs: report fssize
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 30 Nov 2022 03:49:04 +0000 (04:49 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 13 Dec 2022 18:35:18 +0000 (18:35 +0000)
libblkid/src/superblocks/ntfs.c
tests/expected/blkid/low-probe-ntfs

index 1c53fd29d87bf4aa422374cca72ef71e3a50a4e5..8309ea8ca92182f0255cc7a37e3c05edaef2038e 100644 (file)
@@ -218,6 +218,7 @@ static int __probe_ntfs(blkid_probe pr, const struct blkid_idmag *mag, int save_
 
        blkid_probe_set_fsblocksize(pr, sector_size * sectors_per_cluster);
        blkid_probe_set_block_size(pr, sector_size);
+       blkid_probe_set_fssize(pr, le64_to_cpu(ns->number_of_sectors) * sector_size);
 
        blkid_probe_sprintf_uuid(pr,
                        (unsigned char *) &ns->volume_serial,
index 64722f2a7f35537488e94788b491a0ae02f07975..d18e929a892aba48f778e21c41288ee7a4d22fd9 100644 (file)
@@ -1,5 +1,6 @@
 ID_FS_BLOCK_SIZE=512
 ID_FS_FSBLOCKSIZE=4096
+ID_FS_FSSIZE=10485248
 ID_FS_LABEL=Новый_том
 ID_FS_LABEL_ENC=Новый\x20том
 ID_FS_TYPE=ntfs