]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
Improve information about logbsize valid values
authorCarlos Maiolino <cem@kernel.org>
Tue, 26 Aug 2025 12:23:12 +0000 (14:23 +0200)
committerAndrey Albershteyn <aalbersh@kernel.org>
Mon, 8 Sep 2025 11:13:03 +0000 (13:13 +0200)
commit9bd2142c5e354c9c490e819f017fa95b6b7f661f
tree64f6671ff43398660ef2524b731bc2b020b56555
parent8a4ea72724930cfe262ccda03028264e1a81b145
Improve information about logbsize valid values

Valid values for logbsize depends on whether log_sunit is set
on the filesystem or not and if logbsize is manually set or not.

When manually set, logbsize must be one of the speficied values -
32k to 256k inclusive in power-of-to increments. And, the specified
value must also be a multiple of log_sunit.

The default configuration for v2 logs uses a relaxed restriction,
setting logbsize to log_sunit, independent if it is one of the valid
values or not - also implicitly ignoring the power of two restriction.

Instead of changing valid possible values for logbsize, increasing the
testing matrix and allowing users to use some dubious configuration,
just update the man page to describe this difference in behavior when
manually setting logbsize or leave it to defaults.

This has originally been found by an user attempting to manually set
logbsize to the same value picked by the default configuration just so
to receive an error message as result.

Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
man/man5/xfs.5