]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mkfs: set required parts of the realtime geometry before computing log geometry xfsprogs-5.9-fixes_2020-09-14
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 4 Sep 2020 02:48:35 +0000 (19:48 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 15 Sep 2020 01:46:37 +0000 (18:46 -0700)
commit717ef30131a3d15a67618913faed4fefb9075d3a
treed33c715ffa24faff5406edd4edb01e8297e94d4b
parentc752b6d8c2ac7b9aadcf32872e8f0d6fcf7fe80e
mkfs: set required parts of the realtime geometry before computing log geometry

The minimum log size depends on the transaction reservation sizes, which
in turn depend on the realtime device geometry.  Therefore, we need to
set up some of the rt geometry before we can compute the real minimum
log size.

This fixes a problem where mkfs, given a small data device and a
realtime volume, formats a filesystem with a log that is too small to
pass the mount time log size checks.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
mkfs/xfs_mkfs.c