]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mkfs: simplify minimum log size calculation
authorDave Chinner <dchinner@redhat.com>
Wed, 3 Jan 2018 20:10:10 +0000 (14:10 -0600)
committerEric Sandeen <sandeen@redhat.com>
Wed, 3 Jan 2018 20:10:10 +0000 (14:10 -0600)
commita6fb6abe53ec11ba253234e48a1c595a7ee59f8e
tree92b1c56fcc00015143f515cd8bd9963ef7ad50d6
parenta9857ca718fc1d75530fda1585860abc1e2d7ce6
mkfs: simplify minimum log size calculation

mkfs jumps through hoops to call libxfs_log_calc_minimum_size() to
set the minimum log size. We already have a xfs_mount at this point,
we just need to set the superblock up slightly earlier and then mkfs
can call libxfs_log_calc_minimum_size() directly. This means we can
remove mkfs/maxtrres.c completely.

Signed-Off-By: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/xfs_multidisk.h
mkfs/Makefile
mkfs/maxtrres.c [deleted file]
mkfs/xfs_mkfs.c