* [PATCH] io: print more realtime subvolume related information in statfs
@ 2026-03-11 9:26 Christoph Hellwig
2026-03-11 9:57 ` Carlos Maiolino
2026-03-11 20:52 ` Darrick J. Wong
0 siblings, 2 replies; 3+ messages in thread
From: Christoph Hellwig @ 2026-03-11 9:26 UTC (permalink / raw)
To: aalbersh; +Cc: linux-xfs
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>
---
io/stat.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/io/stat.c b/io/stat.c
index c1085f14eade..e3b3574e0416 100644
--- 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);
}
}
--
2.47.3
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] io: print more realtime subvolume related information in statfs
2026-03-11 9:26 [PATCH] io: print more realtime subvolume related information in statfs Christoph Hellwig
@ 2026-03-11 9:57 ` Carlos Maiolino
2026-03-11 20:52 ` Darrick J. Wong
1 sibling, 0 replies; 3+ messages in thread
From: Carlos Maiolino @ 2026-03-11 9:57 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: aalbersh, linux-xfs
On Wed, Mar 11, 2026 at 10:26:27AM +0100, Christoph Hellwig wrote:
> 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>
> ---
> io/stat.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/io/stat.c b/io/stat.c
> index c1085f14eade..e3b3574e0416 100644
> --- 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);
> }
> }
>
> --
> 2.47.3
Looks good.
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] io: print more realtime subvolume related information in statfs
2026-03-11 9:26 [PATCH] io: print more realtime subvolume related information in statfs Christoph Hellwig
2026-03-11 9:57 ` Carlos Maiolino
@ 2026-03-11 20:52 ` Darrick J. Wong
1 sibling, 0 replies; 3+ messages in thread
From: Darrick J. Wong @ 2026-03-11 20:52 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: aalbersh, linux-xfs
On Wed, Mar 11, 2026 at 10:26:27AM +0100, Christoph Hellwig wrote:
> 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>
Sounds like a good idea! Sorry I didn't think to add rgextents/count
when I added metadir.
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
--D
> ---
> io/stat.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/io/stat.c b/io/stat.c
> index c1085f14eade..e3b3574e0416 100644
> --- 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);
> }
> }
>
> --
> 2.47.3
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-03-11 20:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-11 9:26 [PATCH] io: print more realtime subvolume related information in statfs Christoph Hellwig
2026-03-11 9:57 ` Carlos Maiolino
2026-03-11 20:52 ` Darrick J. Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox