]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mkfs: set inode alignment and cluster size for minimum log size estimation
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 13 Jul 2017 16:51:27 +0000 (11:51 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 13 Jul 2017 16:51:27 +0000 (11:51 -0500)
commit2a3145a88765dec2578956f0a2ae2dad663fb03a
treee681c73e061e986610d7bb82f3bcea18a540542f
parentfc22d6ab04c45d04cfe70770ef69224e062ac4a6
mkfs: set inode alignment and cluster size for minimum log size estimation

In order for mkfs to calculate the minimum log size correctly, it must
be able to find the transaction type with the largest reservation.  The
iunlink transaction reservation size calculation depends on having the
inode cluster size set correctly, which in turn depends on the inode
alignment parameters being set as they will be in the final filesystem.
Therefore we have to set up the inoalignmt field in max_trans_res.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/xfs_multidisk.h
libxfs/init.c
mkfs/maxtrres.c
mkfs/xfs_mkfs.c