In discussion [1] it was suggested that adding new field FSSIZE would be useful (size of filesystem, like in lsblk). These patches add new FSSIZE field together with implementation for XFS. [1]: https://bugzilla.redhat.com/show_bug.cgi?id=2064810 Changes from v1: - Minor refactor: Make use of uint64_t, use blkid_probe_sprintf_value() - Add patch #3 - enable FSSIZE in blkid and add new golden output in the tests Andrey Albershteyn (3): libblkid: add interface for FSSIZE field libblkid: implement FSSIZE calculation for XFS blkid: add FSSIZE tag with tests for XFS libblkid/samples/superblocks.c | 2 +- libblkid/src/blkid.h.in | 1 + libblkid/src/superblocks/superblocks.c | 11 +++++++++++ libblkid/src/superblocks/superblocks.h | 1 + libblkid/src/superblocks/xfs.c | 10 ++++++++++ misc-utils/blkid.c | 3 ++- tests/expected/blkid/low-probe-xfs | 1 + tests/expected/blkid/low-probe-xfs-v5 | 1 + 8 files changed, 28 insertions(+), 2 deletions(-) -- 2.27.0