From: hongchao.zhang Date: Sat, 30 Apr 2011 02:13:45 +0000 (+0800) Subject: LU-326 make sure df send statfs request X-Git-Tag: 2.0.62.0~21 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=2ee8ddb331e0b869d5721198b5c7be6989696534 LU-326 make sure df send statfs request in test_18c of recovery_small.sh, it uses df to send a statfs request to OST to detect the disconnection stat, but it will fail to send the request if there is a cache of statfs in client node. the patch adds a "sleep 1" to make sure the cache of statfs expires before df sends statfs request. Change-Id: Ia1f56b8160e77827d5249656488734d7defd6c81 Signed-off-by: Hongchao Zhang Reviewed-on: http://review.whamcloud.com/551 Tested-by: Hudson Reviewed-by: Johann Lombardi Reviewed-by: Fan Yong --- diff --git a/lustre/tests/recovery-small.sh b/lustre/tests/recovery-small.sh index 2f3e767..ea53069 100755 --- a/lustre/tests/recovery-small.sh +++ b/lustre/tests/recovery-small.sh @@ -325,6 +325,7 @@ test_18c() { # lost reply to connect request do_facet ost1 lctl set_param fail_loc=0x80000225 # force reconnect + sleep 1 df $MOUNT > /dev/null 2>&1 sleep 2 # my understanding is that there should be nothing in the page