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

index 06314232906b92749c23a0f53395f7f4dae3afbb..8dece286ec1612e74fe9c94f17611158235d691e 100644 (file)
@@ -118,6 +118,9 @@ static int probe_ubifs(blkid_probe pr, const struct blkid_idmag *mag)
        blkid_probe_sprintf_version(pr, "w%dr%d",
                        le32_to_cpu(sb->fmt_version),
                        le32_to_cpu(sb->ro_compat_version));
+       blkid_probe_set_fssize(pr,
+                       (uint64_t) le32_to_cpu(sb->leb_size)
+                       * le32_to_cpu(sb->leb_cnt));
        return 0;
 }
 
index 4164db4600c6bd1966fc9ebac8511f5625b0ddfe..9ca8af19f78cf17edff9a2ec4dbe2f81d875691e 100644 (file)
@@ -1,3 +1,4 @@
+ID_FS_FSSIZE=1703936
 ID_FS_TYPE=ubifs
 ID_FS_USAGE=filesystem
 ID_FS_UUID=bafe46c2-5ed9-4405-8e81-7fc317fab8f0