generic/062, 520: Don't remove lost+found during cleanup
[xfstests-dev.git] / tests / generic / 062
index b6e28e0fd34808c65f9c8ef9940238d158ad5b10..3fef02e8fc284afbb5597f926bf5f2468b40de0b 100755 (executable)
@@ -176,7 +176,7 @@ echo "*** backup everything"
 _backup $tmp.backup1
 
 echo "*** clear out the scratch device"
-rm -fr $SCRATCH_MNT/*
+rm -rf $(find $SCRATCH_MNT/* | grep -v "lost+found")
 echo "AFTER REMOVE" >>$seqres.full
 getfattr -L -R -m '.' $SCRATCH_MNT >>$seqres.full