sanity test_413b() should shorten lmv->desc.qos_maxage to update
cached statfs in time.
Test-Parameter: trivial envdefinitions=ONLY=413b
Test-Parameter: testlist=sanity,sanity,sanity,sanity,sanity,sanity
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I58672590669be5eaa5c0d679c51cb6cd533bc0d7
Reviewed-on: https://review.whamcloud.com/35395
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
qos_prio_free=${qos_prio_free%%%}
qos_threshold_rr=$($LCTL get_param -n lmv.*.qos_threshold_rr | head -n1)
qos_threshold_rr=${qos_threshold_rr%%%}
qos_prio_free=${qos_prio_free%%%}
qos_threshold_rr=$($LCTL get_param -n lmv.*.qos_threshold_rr | head -n1)
qos_threshold_rr=${qos_threshold_rr%%%}
+ qos_maxage=$($LCTL get_param -n lmv.*.qos_maxage)
stack_trap "$LCTL set_param lmv.*.qos_prio_free=$qos_prio_free" EXIT
stack_trap "$LCTL set_param lmv.*.qos_threshold_rr=$qos_threshold_rr" \
EXIT
stack_trap "$LCTL set_param lmv.*.qos_prio_free=$qos_prio_free" EXIT
stack_trap "$LCTL set_param lmv.*.qos_threshold_rr=$qos_threshold_rr" \
EXIT
+ stack_trap "$LCTL set_param lmv.*.qos_maxage=$qos_maxage" EXIT
echo "mkdir with roundrobin"
echo "mkdir with roundrobin"
rm -rf $DIR/$tdir/*
$LCTL set_param lmv.*.qos_threshold_rr=$qos_threshold_rr
rm -rf $DIR/$tdir/*
$LCTL set_param lmv.*.qos_threshold_rr=$qos_threshold_rr
+ # Shorten statfs result age, so that it can be updated in time
+ $LCTL set_param lmv.*.qos_maxage=1
+ sleep_maxage