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 _begin_fstest auto mount
12 # Override the default cleanup function.
17 echo 0 > /sys/fs/xfs/debug/mount_delay
20 # Import common functions.
23 # real QA test starts here
28 _require_xfs_sysfs debug/mount_delay
30 echo "Silence is golden"
32 _scratch_mkfs > $seqres.full 2>&1
35 $XFS_IO_PROG -fxc "pwrite 0 4k" -c fsync \
36 -c "shutdown" $SCRATCH_MNT/foo 2>&1 > /dev/null
40 echo 30 > /sys/fs/xfs/debug/mount_delay
42 echo 0 > /sys/fs/xfs/debug/mount_delay