xfs
[Top] [All Lists]

[PATCH 1/2] xfstests: test 110 sometimes fails to unmount scratch dev

To: xfs@xxxxxxxxxxx
Subject: [PATCH 1/2] xfstests: test 110 sometimes fails to unmount scratch dev
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Tue, 6 Dec 2011 22:16:58 +1100
In-reply-to: <1323170219-16080-1-git-send-email-david@xxxxxxxxxxxxx>
References: <1323170219-16080-1-git-send-email-david@xxxxxxxxxxxxx>
From: Dave Chinner <dchinner@xxxxxxxxxx>

It runs a bunch of rm processes inteh background, tehn immediately
calls _check_scratch_fs without waiting for them to complete, hence
the unmount can fail with abusy filesystem error.

Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx>
---
 110 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/110 b/110
index cf5f663..aad5835 100755
--- a/110
+++ b/110
@@ -79,6 +79,7 @@ do
     rm $SCRATCH_MNT/test/${STR1}${STR2}${STR3}${I} &
     let I=$I+1
 done
+wait
 
 _check_scratch_fs
 
-- 
1.7.5.4

<Prev in Thread] Current Thread [Next in Thread>