]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_mkfs: limit user capacity to explicitly requested size xfs-zoned-2025-01-08
authorChristoph Hellwig <hch@lst.de>
Thu, 12 Dec 2024 06:54:55 +0000 (07:54 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 12 Dec 2024 15:18:03 +0000 (16:18 +0100)
commit0bc0c325b121d6f0f3764f884b8861b726feb9a2
tree5bd62839500a95e3a5544b4bb69b3fe6ca693042
parent4254e3437115b1ef7382946dbdce0d417fa9e3c2
xfs_mkfs: limit user capacity to explicitly requested size

When rounding up the size specified on the command line to the zone
capacity, the extra blocks are currently added to the user capacity.
Switch to adding them to the reserved blocks instead so that the
user capacity exactly matches what the user requested.

Signed-off-by: Christoph Hellwig <hch@lst.de>
mkfs/xfs_mkfs.c