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

index c7dc22db900b25db177335559a7f58ba0caea466..68abe4d469ffcd1c13606b49af6001053e76ec21 100644 (file)
@@ -86,6 +86,7 @@ static int probe_erofs(blkid_probe pr, const struct blkid_idmag *mag)
        blkid_probe_set_uuid(pr, sb->uuid);
        blkid_probe_set_fsblocksize(pr, 1U << sb->blkszbits);
        blkid_probe_set_block_size(pr, 1U << sb->blkszbits);
+       blkid_probe_set_fssize(pr, (uint64_t) (1U << sb->blkszbits) * le32_to_cpu(sb->blocks));
 
        return BLKID_PROBE_OK;
 }
index b815c7e5d19927aa060d030832743f8e81810312..00bcaf3a66dc3435a32c594c0103196a46313aae 100644 (file)
@@ -1,5 +1,6 @@
 ID_FS_BLOCK_SIZE=4096
 ID_FS_FSBLOCKSIZE=4096
+ID_FS_FSSIZE=4096
 ID_FS_TYPE=erofs
 ID_FS_USAGE=filesystem
 ID_FS_UUID=2375febf-f260-479d-ade7-952494047cb4