mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Don't delete test files if they are corrupt.
Merge of master-melb:xfs-cmds:29726a by kenmcd. Don't delete test files if they are corrupt.
This commit is contained in:
@@ -71,10 +71,13 @@ do
|
|||||||
elif xfs_bmap $file | grep 'hole' > /dev/null
|
elif xfs_bmap $file | grep 'hole' > /dev/null
|
||||||
then
|
then
|
||||||
echo corrupt file $file - contains holes
|
echo corrupt file $file - contains holes
|
||||||
fi
|
else
|
||||||
fi
|
|
||||||
rm -f $file
|
rm -f $file
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
rm -f $file
|
||||||
|
fi
|
||||||
|
fi
|
||||||
i=`expr $i + 1`
|
i=`expr $i + 1`
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
@@ -72,10 +72,13 @@ do
|
|||||||
elif xfs_bmap $file | grep 'hole' > /dev/null
|
elif xfs_bmap $file | grep 'hole' > /dev/null
|
||||||
then
|
then
|
||||||
echo corrupt file $file - contains holes
|
echo corrupt file $file - contains holes
|
||||||
fi
|
else
|
||||||
fi
|
|
||||||
rm -f $file
|
rm -f $file
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
rm -f $file
|
||||||
|
fi
|
||||||
|
fi
|
||||||
i=`expr $i + 1`
|
i=`expr $i + 1`
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
@@ -72,10 +72,13 @@ do
|
|||||||
elif xfs_bmap $file | grep 'hole' > /dev/null
|
elif xfs_bmap $file | grep 'hole' > /dev/null
|
||||||
then
|
then
|
||||||
echo corrupt file $file - contains holes
|
echo corrupt file $file - contains holes
|
||||||
fi
|
else
|
||||||
fi
|
|
||||||
rm -f $file
|
rm -f $file
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
rm -f $file
|
||||||
|
fi
|
||||||
|
fi
|
||||||
i=`expr $i + 1`
|
i=`expr $i + 1`
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user