public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Enable cached zone report
@ 2025-12-19  9:38 Damien Le Moal
  2025-12-19  9:38 ` [PATCH v2 1/3] libxfs: define BLKREPORTZONEV2 if the kernel does not provide it Damien Le Moal
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Damien Le Moal @ 2025-12-19  9:38 UTC (permalink / raw)
  To: linux-xfs, Andrey Albershteyn, Darrick J . Wong
  Cc: Christoph Hellwig, Carlos Maiolino

Enable cached zone report to speed up mkfs and repair on a zoned block
device (e.g. an SMR disk). Cached zone report support was introduced in
the kernel with version 6.19-rc1.  This was co-developped with
Christoph.

Darrick,

It may be cleaner to have a common report zones helper instead of
repating the same ioctl pattern in mkfs/xfs_mkfs.c and repair/zoned.c.
However, I am not sure where to place such helper. In libxfs/ or in
libfrog/ ? Please advise.

Thanks !

Changes from v1:
 - Fix erroneous handling of ioctl(BLKREPORTZONEV2) error to correctly
   fallback to the regular ioctl(BLKREPORTZONE) if the kernel does not
   support BLKREPORTZONEV2.

Damien Le Moal (3):
  libxfs: define BLKREPORTZONEV2 if the kernel does not provide it
  mkfs: use cached report zone
  repair: use cached report zone

 libxfs/topology.h | 8 ++++++++
 mkfs/xfs_mkfs.c   | 7 ++++++-
 repair/zoned.c    | 7 ++++++-
 3 files changed, 20 insertions(+), 2 deletions(-)

-- 
2.52.0


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

end of thread, other threads:[~2025-12-20  2:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-19  9:38 [PATCH v2 0/3] Enable cached zone report Damien Le Moal
2025-12-19  9:38 ` [PATCH v2 1/3] libxfs: define BLKREPORTZONEV2 if the kernel does not provide it Damien Le Moal
2025-12-19  9:38 ` [PATCH v2 2/3] mkfs: use cached report zone Damien Le Moal
2025-12-19  9:38 ` [PATCH v2 3/3] repair: " Damien Le Moal
2025-12-19 23:56 ` [PATCH v2 0/3] Enable cached zone report Darrick J. Wong
2025-12-19 23:59   ` Darrick J. Wong
2025-12-20  0:00   ` Damien Le Moal
2025-12-20  1:54     ` Darrick J. Wong
2025-12-20  2:22       ` Damien Le Moal
2025-12-20  2:59       ` Damien Le Moal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox