xfs: fix tests to handle removal of no-alloc create nonfeature
[xfstests-dev.git] / tests / xfs / 013
index 80298caba87e2d8ae683aefe30d38675b7a48d06..394b9bce84f3334843ee0a8f9a7ba7a6bc69e5e8 100755 (executable)
@@ -145,8 +145,10 @@ $FSSTRESS_PROG -d $SCRATCH_MNT/fsstress -n 9999999 -p 2 -S t \
 for i in $(seq 1 $LOOPS)
 do
        # hard link the content of the current directory to the next
-       cp -Rl $SCRATCH_MNT/dir$i $SCRATCH_MNT/dir$((i+1)) 2>&1 | \
-               filter_enospc
+       while ! test -d $SCRATCH_MNT/dir$((i+1)); do
+               cp -Rl $SCRATCH_MNT/dir$i $SCRATCH_MNT/dir$((i+1)) 2>&1 | \
+                       filter_enospc
+       done
 
        # do a random replacement of files in the new directory
        _rand_replace $SCRATCH_MNT/dir$((i+1)) $COUNT