Whamcloud - gitweb
LU-2918 tests: sanity 184c to start copy before layout swap
[fs/lustre-release.git] / lustre / tests / sanity.sh
index 8778301..af29ca2 100644 (file)
@@ -9532,7 +9532,8 @@ test_184c() {
        dd if=$ref1 of=$file1 bs=16k &
        local DD_PID=$!
 
-       sleep 0.$((RANDOM % 5 + 1))
+       # Make sure dd starts to copy file
+       while [ ! -f $file1 ]; do sleep 0.1; done
 
        $LFS swap_layouts $file1 $file2
        local rc=$?