From: Niklas Cassel <cassel@kernel.org>
To: Christoph Hellwig <hch@lst.de>
Cc: Carlos Maiolino <cem@kernel.org>,
Damien Le Moal <dlemoal@kernel.org>,
Hans Holmberg <hans.holmberg@wdc.com>,
Johannes Thumshirn <johannes.thumshirn@wdc.com>,
linux-xfs@vger.kernel.org
Subject: Re: [PATCH 1/2] xfs: expose the number of free zones in sysfs
Date: Thu, 23 Apr 2026 11:14:24 +0200 [thread overview]
Message-ID: <aeni8LnZNjpF1VxC@ryzen> (raw)
In-Reply-To: <20260423051142.GA27929@lst.de>
On Thu, Apr 23, 2026 at 07:11:42AM +0200, Christoph Hellwig wrote:
> On Wed, Apr 22, 2026 at 12:29:14PM +0200, Niklas Cassel wrote:
> > You say that the usual way to expose stats is through 2)
> > but e.g. nr_open_zones is exposed via 1), introduced in commit
> > 62c89988dc19 ("xfs: expose the number of open zones in sysfs")
> > (You are the author of that commit btw :))
>
> nr_open_zones is important for applications as it tells them how many
> different placement points we can have. nr_free is really just
> an implementation detail.
The commit message for 62c89988dc19 ("xfs: expose the number of open zones
in sysfs") motivated the change by saying that nr_open_zones could be used
in monitoring or testing software.
Which seemed like the same reason/purpose why I wanted to add nr_free_zones.
Your commit message did not mention that user space software could also use
nr_open_zones to calculate the number of different placement points.
Anyway, I can continue with the current (somewhat fragile) way of parsing
/proc/<pid>/mountstats. It is just a bit unfortunate that you can't get it
for a specific mountpoint only.
The "mountstats" command:
https://man7.org/linux/man-pages/man8/mountstats.8.html
seems to be able to display the mountstats for a specific mountpoint only,
but it seems to be for NFS only.
Carlos,
please disregard this series.
Kind regards,
Niklas
next prev parent reply other threads:[~2026-04-23 9:14 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-20 13:50 [PATCH 0/2] xfs: add additional zoned sysfs attributes Niklas Cassel
2026-04-20 13:50 ` [PATCH 1/2] xfs: expose the number of free zones in sysfs Niklas Cassel
2026-04-20 15:39 ` Damien Le Moal
2026-04-22 6:03 ` Christoph Hellwig
2026-04-22 10:29 ` Niklas Cassel
2026-04-23 5:11 ` Christoph Hellwig
2026-04-23 9:14 ` Niklas Cassel [this message]
2026-04-20 13:50 ` [PATCH 2/2] xfs: expose the current zonegc required status " Niklas Cassel
2026-04-20 15:47 ` Damien Le Moal
2026-04-20 16:09 ` Niklas Cassel
2026-04-22 6:04 ` Christoph Hellwig
2026-04-22 10:31 ` Niklas Cassel
2026-04-23 5:12 ` Christoph Hellwig
2026-04-22 6:02 ` [PATCH 0/2] xfs: add additional zoned sysfs attributes Christoph Hellwig
2026-04-22 7:17 ` Carlos Maiolino
2026-04-22 9:53 ` Niklas Cassel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aeni8LnZNjpF1VxC@ryzen \
--to=cassel@kernel.org \
--cc=cem@kernel.org \
--cc=dlemoal@kernel.org \
--cc=hans.holmberg@wdc.com \
--cc=hch@lst.de \
--cc=johannes.thumshirn@wdc.com \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox