From: Ralph Ronnquist Date: Sat, 13 Nov 2021 05:13:24 +0000 (+1100) Subject: add "all" option for scanning all choicepoints X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=rrq%2Fnilfs2sss.git add "all" option for scanning all choicepoints --- diff --git a/sss.sh b/sss.sh index 4c2347c..35b5925 100755 --- a/sss.sh +++ b/sss.sh @@ -20,6 +20,8 @@ KEEPHH=12 KEEPDD=15 DEV=$1 +[ "$2" = "all" ] || LSCP="-s" + if [ -z "$DEV" ] ; then DEVS=( $( mount | grep nilfs2 | sed 's/ .*//' ) ) DEV=${DEVS[0]} @@ -51,7 +53,7 @@ function marksnap() { { flock 9 date "+$DEV: %Y-%m-%d %H:%M:%S ---- checking" >&2 - lscp -s $DEV | while read CNO DATE TIME REST ; do + lscp $LSCP $DEV | while read CNO DATE TIME REST ; do TS="$DATE $TIME" [ "$CNO" = "CNO" ] && continue if [[ ! "$TS" > "$YEARLY" ]] ; then