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 # Import common functions.
21 # real QA test starts here
23 # Modify as appropriate.
26 _scratch_unmount 2>/dev/null
27 _scratch_mkfs >> $seqres.full 2>&1
28 _scratch_mount "-o usrquota,grpquota"
29 quotacheck -u -g $SCRATCH_MNT 2>/dev/null
30 quotaon $SCRATCH_MNT 2>/dev/null
31 xfs_freeze -f $SCRATCH_MNT
32 setquota -u root 1 2 3 4 $SCRATCH_MNT &
35 xfs_freeze -u $SCRATCH_MNT
39 # Failure comes in the form of a deadlock.