On Fri, Dec 30, 2022 at 02:19:27PM -0800, Darrick J. Wong wrote: > From: Darrick J. Wong <djwong@xxxxxxxxxx> > > Race fsstress with inode link count checking and repair. > > Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx> > --- Reviewed-by: Zorro Lang <zlang@xxxxxxxxxx> > tests/xfs/772 | 38 ++++++++++++++++++++++++++++++++++++++ > tests/xfs/772.out | 2 ++ > tests/xfs/820 | 37 +++++++++++++++++++++++++++++++++++++ > tests/xfs/820.out | 2 ++ > 4 files changed, 79 insertions(+) > create mode 100755 tests/xfs/772 > create mode 100644 tests/xfs/772.out > create mode 100755 tests/xfs/820 > create mode 100644 tests/xfs/820.out > > > diff --git a/tests/xfs/772 b/tests/xfs/772 > new file mode 100755 > index 0000000000..a00c2796c5 > --- /dev/null > +++ b/tests/xfs/772 > @@ -0,0 +1,38 @@ > +#! /bin/bash > +# SPDX-License-Identifier: GPL-2.0-or-later > +# Copyright (c) 2022 Oracle. All Rights Reserved. > +# > +# FS QA Test No. 772 > +# > +# Race fsstress and inode link count 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 > + > +# real QA test starts here > +_supported_fs xfs > +_require_scratch > +_require_xfs_stress_online_repair > + > +_scratch_mkfs > "$seqres.full" 2>&1 > +_scratch_mount > +_scratch_xfs_stress_online_repair -x "dir" -s "repair nlinks" > + > +# success, all done > +echo Silence is golden > +status=0 > +exit > diff --git a/tests/xfs/772.out b/tests/xfs/772.out > new file mode 100644 > index 0000000000..98c1396896 > --- /dev/null > +++ b/tests/xfs/772.out > @@ -0,0 +1,2 @@ > +QA output created by 772 > +Silence is golden > diff --git a/tests/xfs/820 b/tests/xfs/820 > new file mode 100755 > index 0000000000..58a5d4cc91 > --- /dev/null > +++ b/tests/xfs/820 > @@ -0,0 +1,37 @@ > +#! /bin/bash > +# SPDX-License-Identifier: GPL-2.0-or-later > +# Copyright (c) 2022 Oracle. All Rights Reserved. > +# > +# FS QA Test No. 820 > +# > +# Race fsstress and nlinks scrub for a while to see if we crash or livelock. > +# > +. ./common/preamble > +_begin_fstest scrub dangerous_fsstress_scrub > + > +_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 > + > +# real QA test starts here > +_supported_fs xfs > +_require_scratch > +_require_xfs_stress_scrub > + > +_scratch_mkfs > "$seqres.full" 2>&1 > +_scratch_mount > +_scratch_xfs_stress_scrub -x "dir" -s "scrub nlinks" > + > +# success, all done > +echo Silence is golden > +status=0 > +exit > diff --git a/tests/xfs/820.out b/tests/xfs/820.out > new file mode 100644 > index 0000000000..29ab2e2d8c > --- /dev/null > +++ b/tests/xfs/820.out > @@ -0,0 +1,2 @@ > +QA output created by 820 > +Silence is golden >