From: Darrick J. Wong <djwong@xxxxxxxxxx> I found a bunch more tests in the xfs/ directory that try to create specific metadata layouts on the data device, either because they're fuzz tests or because they're testing specific edge cases of the code base. Either way, these test need to override '-d rtinherit' in the MKFS_OPTIONS, so do that with _xfs_force_bdev. Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx> --- tests/xfs/088 | 1 + tests/xfs/089 | 1 + tests/xfs/091 | 1 + tests/xfs/120 | 1 + tests/xfs/130 | 1 + tests/xfs/139 | 2 ++ tests/xfs/207 | 1 + tests/xfs/229 | 1 + tests/xfs/235 | 1 + 9 files changed, 10 insertions(+) diff --git a/tests/xfs/088 b/tests/xfs/088 index 6c5cbec8..b3e65dcf 100755 --- a/tests/xfs/088 +++ b/tests/xfs/088 @@ -48,6 +48,7 @@ _scratch_mkfs_xfs > /dev/null echo "+ mount fs image" _scratch_mount blksz="$(stat -f -c '%s' "${SCRATCH_MNT}")" +_xfs_force_bdev data $SCRATCH_MNT echo "+ make some files" mkdir -p "${TESTDIR}" diff --git a/tests/xfs/089 b/tests/xfs/089 index 2892ad9e..21380798 100755 --- a/tests/xfs/089 +++ b/tests/xfs/089 @@ -48,6 +48,7 @@ _scratch_mkfs_xfs > /dev/null echo "+ mount fs image" _scratch_mount blksz="$(stat -f -c '%s' "${SCRATCH_MNT}")" +_xfs_force_bdev data $SCRATCH_MNT echo "+ make some files" mkdir -p "${TESTDIR}" diff --git a/tests/xfs/091 b/tests/xfs/091 index 04322cec..ff8f0f1f 100755 --- a/tests/xfs/091 +++ b/tests/xfs/091 @@ -48,6 +48,7 @@ _scratch_mkfs_xfs > /dev/null echo "+ mount fs image" _scratch_mount blksz="$(stat -f -c '%s' "${SCRATCH_MNT}")" +_xfs_force_bdev data $SCRATCH_MNT echo "+ make some files" mkdir -p "${TESTDIR}" diff --git a/tests/xfs/120 b/tests/xfs/120 index e66bc763..f5eb14cc 100755 --- a/tests/xfs/120 +++ b/tests/xfs/120 @@ -47,6 +47,7 @@ echo "+ mount fs image" _scratch_mount blksz="$(stat -f -c '%s' "${SCRATCH_MNT}")" nr="$((blksz * 2 / 16))" +_xfs_force_bdev data $SCRATCH_MNT echo "+ make some files" $XFS_IO_PROG -f -c "pwrite -S 0x62 0 $((blksz * nr))" -c 'fsync' "${SCRATCH_MNT}/bigfile" >> $seqres.full diff --git a/tests/xfs/130 b/tests/xfs/130 index 3071eace..6f6e8512 100755 --- a/tests/xfs/130 +++ b/tests/xfs/130 @@ -43,6 +43,7 @@ echo "+ mount fs image" _scratch_mount blksz="$(stat -f -c '%s' "${SCRATCH_MNT}")" agcount="$(_xfs_mount_agcount $SCRATCH_MNT)" +_xfs_force_bdev data $SCRATCH_MNT echo "+ make some files" _pwrite_byte 0x62 0 $((blksz * 64)) "${SCRATCH_MNT}/file0" >> "$seqres.full" diff --git a/tests/xfs/139 b/tests/xfs/139 index 1444444d..58b71711 100755 --- a/tests/xfs/139 +++ b/tests/xfs/139 @@ -38,12 +38,14 @@ rm -f $seqres.full _scratch_mkfs >/dev/null 2>&1 _scratch_mount +_xfs_force_bdev data $SCRATCH_MNT blksz=$(_get_file_block_size $SCRATCH_MNT) _scratch_unmount echo "Format and mount" _scratch_mkfs -d agsize=$((16384 * $blksz)) > $seqres.full 2>&1 _scratch_mount >> $seqres.full 2>&1 +_xfs_force_bdev data $SCRATCH_MNT testdir=$SCRATCH_MNT/test-$seq mkdir $testdir diff --git a/tests/xfs/207 b/tests/xfs/207 index f703c0dc..f0f30754 100755 --- a/tests/xfs/207 +++ b/tests/xfs/207 @@ -50,6 +50,7 @@ rm -f $seqres.full echo "Format and mount" _scratch_mkfs > $seqres.full 2>&1 _scratch_mount >> $seqres.full 2>&1 +_xfs_force_bdev data $SCRATCH_MNT testdir=$SCRATCH_MNT/test-$seq mkdir $testdir diff --git a/tests/xfs/229 b/tests/xfs/229 index e723b10b..64851557 100755 --- a/tests/xfs/229 +++ b/tests/xfs/229 @@ -38,6 +38,7 @@ _require_fs_space $TEST_DIR 3200000 TDIR="${TEST_DIR}/t_holes" NFILES="10" EXTSIZE="256k" +_xfs_force_bdev data $TEST_DIR # Create the test directory mkdir ${TDIR} diff --git a/tests/xfs/235 b/tests/xfs/235 index a2ab9e55..55f5c5a6 100755 --- a/tests/xfs/235 +++ b/tests/xfs/235 @@ -41,6 +41,7 @@ echo "+ mount fs image" _scratch_mount blksz=$(stat -f -c '%s' ${SCRATCH_MNT}) agcount=$(_xfs_mount_agcount $SCRATCH_MNT) +_xfs_force_bdev data $SCRATCH_MNT echo "+ make some files" _pwrite_byte 0x62 0 $((blksz * 64)) ${SCRATCH_MNT}/file0 >> $seqres.full