]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mkfs: fix missing validation of -l size against maximum internal log size
authorDarrick J. Wong <djwong@kernel.org>
Wed, 18 May 2022 02:48:12 +0000 (22:48 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 18 May 2022 02:48:12 +0000 (22:48 -0400)
commitaba6743c5893e9a4bfe88aefecef08eb3069b336
treeedad64014f4a81808f5a2646198914559c936b71
parent3a7f7109a817e4084bd9eee1f311b579caaf2e77
mkfs: fix missing validation of -l size against maximum internal log size

If a sysadmin specifies a log size explicitly, we don't actually check
that against the maximum internal log size that we compute for the
default log size computation.  We're going to add more validation soon,
so refactor the max internal log blocks into a common variable and
add a check.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
mkfs/xfs_mkfs.c