Skip to contentSkip to conversation

xfs_io: print more realtime subvolume related information in statfs

PATCH New Christoph Hellwig 1 participant 1 message Mar 12

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 xfs_io: print more realtime subvolume related information in statfs

The statfs call report information from the fs geometry structure. Add the fields added for realtime group and zoned device support to this output.

---

Changes since v1:
- use a consistent subject line prefix

 io/stat.c | 6 ++++++
 1 file changed, 6 insertions(+)
io/stat.c +6 -0
index c1085f14eade..e3b3574e0416 100644
@@ -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);
 		}
 	}
 
Signature · 1 line
2.47.3