From: Darrick J. Wong <djwong@xxxxxxxxxx> Create tests to race fsstress with dquot repair while running fsstress in the background. Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx> --- tests/xfs/809 | 40 ++++++++++++++++++++++++++++++++++++++++ tests/xfs/809.out | 2 ++ tests/xfs/810 | 40 ++++++++++++++++++++++++++++++++++++++++ tests/xfs/810.out | 2 ++ tests/xfs/811 | 40 ++++++++++++++++++++++++++++++++++++++++ tests/xfs/811.out | 2 ++ 6 files changed, 126 insertions(+) create mode 100755 tests/xfs/809 create mode 100644 tests/xfs/809.out create mode 100755 tests/xfs/810 create mode 100644 tests/xfs/810.out create mode 100755 tests/xfs/811 create mode 100644 tests/xfs/811.out diff --git a/tests/xfs/809 b/tests/xfs/809 new file mode 100755 index 0000000000..35ac02ff85 --- /dev/null +++ b/tests/xfs/809 @@ -0,0 +1,40 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2022 Oracle. Inc. All Rights Reserved. +# +# FS QA Test No. 809 +# +# Race fsstress and user quota repair for a while to see if we crash or +# livelock. +# +. ./common/preamble +_begin_fstest online_repair dangerous_fsstress_repair + +_cleanup() { + _scratch_xfs_stress_scrub_cleanup &> /dev/null + cd / + rm -r -f $tmp.* +} +_register_cleanup "_cleanup" BUS + +# Import common functions. +. ./common/filter +. ./common/fuzzy +. ./common/inject +. ./common/xfs +. ./common/quota + +# real QA test starts here +_supported_fs xfs +_require_scratch +_require_xfs_stress_online_repair + +_scratch_mkfs > "$seqres.full" 2>&1 +_scratch_mount +_require_xfs_quota_acct_enabled "$SCRATCH_DEV" usrquota +_scratch_xfs_stress_online_repair -s "repair usrquota" + +# success, all done +echo Silence is golden +status=0 +exit diff --git a/tests/xfs/809.out b/tests/xfs/809.out new file mode 100644 index 0000000000..e90865ca8f --- /dev/null +++ b/tests/xfs/809.out @@ -0,0 +1,2 @@ +QA output created by 809 +Silence is golden diff --git a/tests/xfs/810 b/tests/xfs/810 new file mode 100755 index 0000000000..7387910504 --- /dev/null +++ b/tests/xfs/810 @@ -0,0 +1,40 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2022 Oracle. Inc. All Rights Reserved. +# +# FS QA Test No. 810 +# +# Race fsstress and group quota repair for a while to see if we crash or +# livelock. +# +. ./common/preamble +_begin_fstest online_repair dangerous_fsstress_repair + +_cleanup() { + _scratch_xfs_stress_scrub_cleanup &> /dev/null + cd / + rm -r -f $tmp.* +} +_register_cleanup "_cleanup" BUS + +# Import common functions. +. ./common/filter +. ./common/fuzzy +. ./common/inject +. ./common/xfs +. ./common/quota + +# real QA test starts here +_supported_fs xfs +_require_scratch +_require_xfs_stress_online_repair + +_scratch_mkfs > "$seqres.full" 2>&1 +_scratch_mount +_require_xfs_quota_acct_enabled "$SCRATCH_DEV" grpquota +_scratch_xfs_stress_online_repair -s "repair grpquota" + +# success, all done +echo Silence is golden +status=0 +exit diff --git a/tests/xfs/810.out b/tests/xfs/810.out new file mode 100644 index 0000000000..90f12fdd21 --- /dev/null +++ b/tests/xfs/810.out @@ -0,0 +1,2 @@ +QA output created by 810 +Silence is golden diff --git a/tests/xfs/811 b/tests/xfs/811 new file mode 100755 index 0000000000..1e13940b46 --- /dev/null +++ b/tests/xfs/811 @@ -0,0 +1,40 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2022 Oracle. Inc. All Rights Reserved. +# +# FS QA Test No. 811 +# +# Race fsstress and project quota repair for a while to see if we crash or +# livelock. +# +. ./common/preamble +_begin_fstest online_repair dangerous_fsstress_repair + +_cleanup() { + _scratch_xfs_stress_scrub_cleanup &> /dev/null + cd / + rm -r -f $tmp.* +} +_register_cleanup "_cleanup" BUS + +# Import common functions. +. ./common/filter +. ./common/fuzzy +. ./common/inject +. ./common/xfs +. ./common/quota + +# real QA test starts here +_supported_fs xfs +_require_scratch +_require_xfs_stress_online_repair + +_scratch_mkfs > "$seqres.full" 2>&1 +_scratch_mount +_require_xfs_quota_acct_enabled "$SCRATCH_DEV" prjquota +_scratch_xfs_stress_online_repair -s "repair prjquota" + +# success, all done +echo Silence is golden +status=0 +exit diff --git a/tests/xfs/811.out b/tests/xfs/811.out new file mode 100644 index 0000000000..cf30f69bdc --- /dev/null +++ b/tests/xfs/811.out @@ -0,0 +1,2 @@ +QA output created by 811 +Silence is golden