mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs/119: fix MKFS_OPTIONS exporting
This test originally exported its own MKFS_OPTIONS to force the tested
filesystem config to the mkfs defaults + test-specific log size options.
This overrides whatever the test runner might have set in MKFS_OPTIONS.
In commit 2fd273886b ("xfs: refactor minimum log size formatting
code") we fail to export our test-specific MKFS_OPTIONS before
calculating the minimum log size, which leads to the wrong min log size
being calculated once we fixed the helper to be smarter about mkfs options.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Allison Collins <allison.henderson@oracle.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
ee3677a868
commit
968c531cbe
+2
-1
@@ -38,7 +38,8 @@ _require_scratch
|
||||
# this may hang
|
||||
sync
|
||||
|
||||
logblks=$(_scratch_find_xfs_min_logblocks -l version=2,su=64k)
|
||||
export MKFS_OPTIONS="-l version=2,su=64k"
|
||||
logblks=$(_scratch_find_xfs_min_logblocks)
|
||||
export MKFS_OPTIONS="-l version=2,size=${logblks}b,su=64k"
|
||||
export MOUNT_OPTIONS="-o logbsize=64k"
|
||||
_scratch_mkfs_xfs >/dev/null
|
||||
|
||||
Reference in New Issue
Block a user