-for OSC in /proc/fs/lustre/osc/*-osc-*; do
- AVAIL=`cat $OSC/kbytesavail`
- GRANT=$((`cat $OSC/cur_grant_bytes` / 1024))
- echo -n "$(basename $OSC) avl=$AVAIL grnt=$GRANT diff=$(($AVAIL - $GRANT))"
- [ $(($AVAIL - $GRANT)) -lt 400 ] && OSCFULL=full && echo -n " FULL"
- echo " "
-done
-
-if [ -z "$OSCFULL" ]; then