2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2018 Red Hat, Inc. All Rights Reserved.
7 # Exercise mount vs superblock shrinker races.
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
15 status=1 # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
22 echo 0 > /sys/fs/xfs/debug/mount_delay
25 # get standard environment, filters and checks
29 # remove previous $seqres.full before test
32 # real QA test starts here
38 _require_xfs_sysfs debug/mount_delay
40 echo "Silence is golden"
42 _scratch_mkfs > $seqres.full 2>&1
45 $XFS_IO_PROG -fxc "pwrite 0 4k" -c fsync \
46 -c "shutdown" $SCRATCH_MNT/foo 2>&1 > /dev/null
50 echo 30 > /sys/fs/xfs/debug/mount_delay
52 echo 0 > /sys/fs/xfs/debug/mount_delay