2 trap 'kill $(jobs -p)' EXIT
4 LUSTRE=${LUSTRE:-$(cd $(dirname $0)/../..; echo $PWD)}
5 . $LUSTRE/tests/test-framework.sh
7 . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
10 sleep $((RANDOM % 9 + 11))
11 ssname=$(do_facet mgs "$LCTL snapshot_list -F $FSNAME 2>/dev/null" |
12 awk '/snapshot_name.*lss_/ { print $2; exit; }')
13 [ ! -z "$ssname" ] && lsnapshot_destroy -n $ssname -f || true