generic/520: Remove sync in clean_dir
[xfstests-dev.git] / tests / generic / 520
index 4058262bdff8818f000a65292d454df11a39560a..d44573705f102c96c36355995453543699df997c 100755 (executable)
@@ -57,8 +57,7 @@ after=""
 clean_dir()
 {
        _mount_flakey
-       rm -rf $SCRATCH_MNT/*
-       sync
+       rm -rf $(find $SCRATCH_MNT/* | grep -v "lost+found")
        _unmount_flakey
 }