From: Lai Siyao Date: Fri, 28 Jun 2019 19:07:09 +0000 (+0800) Subject: LU-12495 test: shorten qos_maxage to update statfs X-Git-Tag: 2.12.56~4 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=23cbeb6e31a77ea2face6fdd947aac5ad3c4e099 LU-12495 test: shorten qos_maxage to update statfs 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 Change-Id: I58672590669be5eaa5c0d679c51cb6cd533bc0d7 Reviewed-on: https://review.whamcloud.com/35395 Reviewed-by: Andreas Dilger Tested-by: jenkins Tested-by: Maloo Reviewed-by: Hongchao Zhang --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index e15d104..2da2d77 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -20000,10 +20000,12 @@ test_413b() { 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_maxage=$qos_maxage" EXIT echo "mkdir with roundrobin" @@ -20021,6 +20023,9 @@ test_413b() { 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 local ffree local max