util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] libblkid: add FSSIZE with XFS implementation
@ 2022-04-25 15:08 Andrey Albershteyn
  2022-04-25 15:08 ` [PATCH v2 1/3] libblkid: add interface for FSSIZE field Andrey Albershteyn
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Andrey Albershteyn @ 2022-04-25 15:08 UTC (permalink / raw)
  To: util-linux; +Cc: Andrey Albershteyn

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-04-26  8:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-25 15:08 [PATCH v2 0/3] libblkid: add FSSIZE with XFS implementation Andrey Albershteyn
2022-04-25 15:08 ` [PATCH v2 1/3] libblkid: add interface for FSSIZE field Andrey Albershteyn
2022-04-25 15:08 ` [PATCH v2 2/3] libblkid: implement FSSIZE calculation for XFS Andrey Albershteyn
2022-04-25 15:08 ` [PATCH v2 3/3] blkid: add FSSIZE tag with tests " Andrey Albershteyn
2022-04-26  8:32 ` [PATCH v2 0/3] libblkid: add FSSIZE with XFS implementation Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).