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 _begin_fstest auto quota freeze
13 # Override the default cleanup function.
16 # Make sure $SCRATCH_MNT is unfreezed
17 xfs_freeze -u $SCRATCH_MNT 2>/dev/null
18 [ -n "$pid" ] && kill -9 $pid 2>/dev/null
24 # Import common functions.
32 # real QA test starts here
34 # Modify as appropriate.
37 _scratch_unmount 2>/dev/null
38 _scratch_mkfs >> $seqres.full 2>&1
39 _scratch_mount "-o usrquota,grpquota"
40 quotacheck -u -g $SCRATCH_MNT 2>/dev/null
41 quotaon $SCRATCH_MNT 2>/dev/null
42 xfs_freeze -f $SCRATCH_MNT
43 setquota -u root 1 2 3 4 $SCRATCH_MNT &
46 xfs_freeze -u $SCRATCH_MNT
50 # Failure comes in the form of a deadlock.