+
+ max=`lctl get_param -n llite.*.statahead_max | head -n 1`
+ lctl set_param -n llite.*.statahead_max 0
+ lctl get_param llite.*.statahead_max
+ cancel_lru_locks mdc
+ cancel_lru_locks osc
+ $LCTL dk > /dev/null
+ stime=`date +%s`
+ time ls -l $DIR/$tdir | wc -l
+ etime=`date +%s`
+ $LCTL dk > $TMP/sanity_test_123a_${i}_disable_${etime}.log
+ delta=$((etime - stime))
+ log "ls $i files without statahead: $delta sec, dump to $TMP/sanity_test_123a_${i}_disable_${etime}.log"
+ lctl set_param llite.*.statahead_max=$max
+
+ lctl get_param -n llite.*.statahead_max | grep '[0-9]'
+ cancel_lru_locks mdc
+ cancel_lru_locks osc
+ $LCTL dk > /dev/null
+ stime=`date +%s`
+ time ls -l $DIR/$tdir | wc -l
+ etime=`date +%s`
+ $LCTL dk > $TMP/sanity_test_123a_${i}_enable_${etime}.log
+ delta_sa=$((etime - stime))
+ log "ls $i files with statahead: $delta_sa sec, dump to $TMP/sanity_test_123a_${i}_enable_${etime}.log"
+ lctl get_param -n llite.*.statahead_stats