Changes between Initial Version and Version 1 of Ticket #755, comment 39
- Timestamp:
- 2018-08-22T21:11:24Z (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #755, comment 39
initial v1 18 18 echo "checking: ${1}${ITEM}" 19 19 echo "$ITEM" | grep "/" >> /dev/null && echo " Is a directory..." && recurser "${1}${ITEM}" 20 ( $tahoe check --add-lease "${1}${ITEM}" | | $tahoe check --repair --add-lease "${1}${ITEM}" || echo "${1}${ITEM}" >> $FAILEDLOG ) &20 ( $tahoe check --add-lease "${1}${ITEM}" | grep -n10 healthy || $tahoe check --repair --add-lease "${1}${ITEM}" || echo "${1}${ITEM}" >> $FAILEDLOG ) & 21 21 CHILDREN="$? $CHILDREN" 22 22 if [[ $(echo "$CHILDREN" | wc -w) == "$THREADS" ]]; then … … 41 41 42 42 If you guys want to bundle this tool or some clone or variant thereof into your packages you are more than welcome to do so. We need something to actually keep people's data safe until this bug is fixed. 43 44 Edit: Oh for Pete's Sake! tahoe check exits with a 0 even when the checked objects are unhealthy, so I have to scan the output myself to assess it. I sense that at some point I'm going to need to rewrite this in Python or something and use the REST API. Hopefully that's at least somewhat sane...