]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: validate that zoned RT devices are zone aligned
authorChristoph Hellwig <hch@lst.de>
Sun, 22 Feb 2026 22:41:01 +0000 (14:41 -0800)
committerAndrey Albershteyn <aalbersh@kernel.org>
Mon, 2 Mar 2026 09:54:27 +0000 (10:54 +0100)
commit6aa2b48a6b668a0031bbbae895d60c0187569da0
tree6f1011d8b2c9126fbd39625e9741c6f6c9f68a77
parent396517b382aa161c045909379610a3ee991c8749
xfs: validate that zoned RT devices are zone aligned

Source kernel commit: 982d2616a2906113e433fdc0cfcc122f8d1bb60a

Garbage collection assumes all zones contain the full amount of blocks.
Mkfs already ensures this happens, but make the kernel check it as well
to avoid getting into trouble due to fuzzers or mkfs bugs.

Fixes: 2167eaabe2fa ("xfs: define the zoned on-disk format")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_sb.c