]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_mkfs: support creating file system with zoned RT devices
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Apr 2025 05:36:14 +0000 (07:36 +0200)
committerAndrey Albershteyn <aalbersh@kernel.org>
Tue, 29 Apr 2025 16:09:58 +0000 (18:09 +0200)
commit2e5a737a61d34e6369ab0b051d554614145dab52
treec99c42c1fd3d6ddb16bc052fc056c829b1041160
parentb578151091ab6579383f2553b48270a87909dbbb
xfs_mkfs: support creating file system with zoned RT devices

To create file systems with a zoned RT device, query the hardware
zone information to align the RT groups to it, and create an internal
RT device if the device has conventional and sequential write required
zones.

Default to use all sequential write required zoned for the RT device if
there are sequential write required zones.

Default to 256 and 1% conventional when -r zoned is specified without
further option and there are no sequential write required zones.  This
mimics a SMR HDD and works well with tests.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
libxfs/init.c
mkfs/proto.c
mkfs/xfs_mkfs.c