]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mkfs: don't complain about overly large auto-detected log stripe units
authorDarrick J. Wong <djwong@kernel.org>
Tue, 1 Jul 2025 17:45:14 +0000 (10:45 -0700)
committerAndrey Albershteyn <aalbersh@kernel.org>
Fri, 18 Jul 2025 14:05:10 +0000 (16:05 +0200)
commit875e57e81ce4293c02d8490bd2fcae8c6de6445a
tree41437bc688318f1eb7ef4bb5b98bb1e00ef04350
parent55b28badd9c198770e395bbd1bf57d3cdcecfb23
mkfs: don't complain about overly large auto-detected log stripe units

If mkfs declines to apply what it thinks is an overly large data device
stripe unit to the log device, it should only log a message about that
if the lsunit parameter was actually supplied by the caller.  It should
not do that when the lsunit was autodetected from the block devices.

The cli parameters are zero-initialized in main and always have been.

Cc: <linux-xfs@vger.kernel.org> # v4.15.0
Fixes: 2f44b1b0e5adc4 ("mkfs: rework stripe calculations")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: John Garry <john.g.garry@oracle.com>
mkfs/xfs_mkfs.c