]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
mkfs.xfs fix sunit size on 512e and 4kN disks.
authorLukas Herbolt <lukas@herbolt.com>
Thu, 19 Feb 2026 11:44:09 +0000 (12:44 +0100)
committerAndrey Albershteyn <aalbersh@kernel.org>
Thu, 19 Feb 2026 15:37:13 +0000 (16:37 +0100)
commitca1eb448e116dab7fd773adb89d9121ee4242ea0
tree580c2eff02be950745bee1a7b8db9f6379b15249
parent783268546e983c78454ce635a902ec54cd6f75b1
mkfs.xfs fix sunit size on 512e and 4kN disks.

Creating of XFS on 4kN or 512e disk result in suboptimal LSU/LSUNIT.
As of now we check if the sectorsize is bigger than XLOG_HEADER_SIZE
and so we set lsu to blocksize. But we do not check the the size if
lsunit can be bigger to fit the disk geometry.

Signed-off-by: Lukas Herbolt <lukas@herbolt.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
mkfs/xfs_mkfs.c