]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mkfs: set agsize prior to calculating minimum log size
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 19 Aug 2016 00:53:14 +0000 (10:53 +1000)
committerDave Chinner <david@fromorbit.com>
Fri, 19 Aug 2016 00:53:14 +0000 (10:53 +1000)
commite5cc9d560a16d61a7456ef6e91b61d823b5b46df
treeb2e6ee09d248a43b7ec12c2993a67252d5fc32b9
parenta418fe7dba54d060f0298f69a41418b464e7dfa7
mkfs: set agsize prior to calculating minimum log size

Each btree has its own maxlevels variable.  Since the level count of
certain btrees depend on agblocks, it's necessary to know the AG size
prior to calculating the log reservations.  These reservations are
needed to calculate the log size and the kernel will refuse to mount
if we guess too low, so stuff in the real agsize when we're formatting
the log.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
include/xfs_multidisk.h
mkfs/maxtrres.c
mkfs/xfs_mkfs.c