]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: romfs: report fssize
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 24 Oct 2022 21:25:23 +0000 (23:25 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 24 Oct 2022 21:25:23 +0000 (23:25 +0200)
libblkid/src/superblocks/romfs.c
tests/expected/blkid/low-probe-romfs

index 5ce0a250a945738c19b9e00e44f059dbc8343c46..fd8837c5a428aae98a1c0125d80fb168d66ab2bc 100644 (file)
@@ -60,6 +60,7 @@ static int probe_romfs(blkid_probe pr, const struct blkid_idmag *mag)
                                sizeof(ros->ros_volume));
 
        blkid_probe_set_fsblocksize(pr, 1024);
+       blkid_probe_set_fssize(pr, be32_to_cpu(ros->ros_full_size));
        blkid_probe_set_block_size(pr, 1024);
 
        return 0;
index 2c606ecc15574a60384e56830464a381a8e8ea82..db9bb1df28bc7e4b4290d9d3fd9f6d3015a89220 100644 (file)
@@ -1,5 +1,6 @@
 ID_FS_BLOCK_SIZE=1024
 ID_FS_FSBLOCKSIZE=1024
+ID_FS_FSSIZE=96
 ID_FS_LABEL=test-romfs
 ID_FS_LABEL_ENC=test-romfs
 ID_FS_TYPE=romfs