From: Thomas Weißschuh Date: Mon, 24 Oct 2022 21:25:23 +0000 (+0200) Subject: libblkid: romfs: report fssize X-Git-Tag: v2.39-rc1~446^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db80b704f7b687512c43bd6691faec7f13e55613;p=thirdparty%2Futil-linux.git libblkid: romfs: report fssize --- diff --git a/libblkid/src/superblocks/romfs.c b/libblkid/src/superblocks/romfs.c index 5ce0a250a9..fd8837c5a4 100644 --- a/libblkid/src/superblocks/romfs.c +++ b/libblkid/src/superblocks/romfs.c @@ -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; diff --git a/tests/expected/blkid/low-probe-romfs b/tests/expected/blkid/low-probe-romfs index 2c606ecc15..db9bb1df28 100644 --- a/tests/expected/blkid/low-probe-romfs +++ b/tests/expected/blkid/low-probe-romfs @@ -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