mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic/280: use waidpid instead of ugly sleep
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
committed by
Dave Chinner
parent
5f6be5c6d2
commit
33e02a8537
+2
-1
@@ -61,9 +61,10 @@ quotacheck -u -g $SCRATCH_MNT 2>/dev/null
|
||||
quotaon $SCRATCH_MNT 2>/dev/null
|
||||
xfs_freeze -f $SCRATCH_MNT
|
||||
setquota -u root 1 2 3 4 $SCRATCH_MNT &
|
||||
pid=$!
|
||||
sleep 1
|
||||
xfs_freeze -u $SCRATCH_MNT
|
||||
sleep 1
|
||||
wait $pid
|
||||
umount $SCRATCH_DEV
|
||||
|
||||
# Failure comes in the form of a deadlock.
|
||||
|
||||
Reference in New Issue
Block a user