xfs: refactor minimum log size formatting code
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 7 May 2019 16:56:56 +0000 (09:56 -0700)
committerEryu Guan <guaneryu@gmail.com>
Fri, 10 May 2019 09:29:57 +0000 (17:29 +0800)
commit2fd273886b5259f9bae7cddb85dd364b7240ea52
treed19bec56b14aae6a3f191ee1b8872dcf0a1d2509
parent2bb2dd24cc9e8fb5ddf733c59f05a6884c0a1d6b
xfs: refactor minimum log size formatting code

Create a new helper function to discover the minimum log size that will
work with the mkfs options provided, then remove all the hardcoded block
sizes from various xfs tests.  This will be necessary when we turn on
reflink or rmap by default and the minimum log size increases.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Tested-by: Yang Xu<xuyang2018.jy@cn.fujitsu.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/xfs
tests/xfs/104
tests/xfs/119
tests/xfs/291
tests/xfs/295
tests/xfs/297