From 2ee8ddb331e0b869d5721198b5c7be6989696534 Mon Sep 17 00:00:00 2001 From: "hongchao.zhang" Date: Sat, 30 Apr 2011 10:13:45 +0800 Subject: [PATCH] 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 --- lustre/tests/recovery-small.sh | 1 + 1 file changed, 1 insertion(+) 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 -- 1.8.3.1