Changes between Initial Version and Version 1 of Ticket #755, comment 39


Ignore:
Timestamp:
2018-08-22T21:11:24Z (6 years ago)
Author:
tlhonmey
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #755, comment 39

    initial v1  
    1818    echo "checking: ${1}${ITEM}"
    1919    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 ) &
    2121    CHILDREN="$? $CHILDREN"
    2222    if [[ $(echo "$CHILDREN" | wc -w) == "$THREADS" ]]; then
     
    4141
    4242If 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
     44Edit:  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...