]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commitdiff
xfs_io: print more realtime subvolume related information in statfs
authorChristoph Hellwig <hch@lst.de>
Thu, 12 Mar 2026 07:00:11 +0000 (08:00 +0100)
committerAndrey Albershteyn <aalbersh@kernel.org>
Thu, 12 Mar 2026 14:35:40 +0000 (15:35 +0100)
The statfs call report information from the fs geometry structure.
Add the fields added for realtime group and zoned device support to
this output.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
io/stat.c

index c1085f14eade93ff76b4694bb000a8ea11d5f92c..e3b3574e0416887cc87b6d457e12a7c0244498ab 100644 (file)
--- a/io/stat.c
+++ b/io/stat.c
@@ -282,6 +282,12 @@ statfs_f(
                        printf(_("geom.rtextsize = %u\n"), fsgeo.rtextsize);
                        printf(_("geom.sunit = %u\n"), fsgeo.sunit);
                        printf(_("geom.swidth = %u\n"), fsgeo.swidth);
+                       printf(_("geom.rgextents = %u\n"), fsgeo.rgextents);
+                       printf(_("geom.rgcount = %u\n"), fsgeo.rgcount);
+                       printf(_("geom.rtstart = %llu\n"),
+                               (unsigned long long)fsgeo.rtstart);
+                       printf(_("geom.rtreserved = %llu\n"),
+                               (unsigned long long)fsgeo.rtreserved);
                }
        }