2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2012 Red Hat, Inc. All Rights Reserved.
7 # Test quota vs. suspend/freeze deadlock,
8 # dcdbed85 quota: Fix deadlock with suspend and quotas
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
16 status=1 # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
25 # get standard environment, filters and checks
34 # real QA test starts here
36 # Modify as appropriate.
41 _scratch_unmount 2>/dev/null
42 _scratch_mkfs >> $seqres.full 2>&1
43 _scratch_mount "-o usrquota,grpquota"
44 quotacheck -u -g $SCRATCH_MNT 2>/dev/null
45 quotaon $SCRATCH_MNT 2>/dev/null
46 xfs_freeze -f $SCRATCH_MNT
47 setquota -u root 1 2 3 4 $SCRATCH_MNT &
50 xfs_freeze -u $SCRATCH_MNT
54 # Failure comes in the form of a deadlock.