Whamcloud - gitweb
LU-326 make sure df send statfs request
authorhongchao.zhang <hongchao.zhang@whamcloud.com>
Sat, 30 Apr 2011 02:13:45 +0000 (10:13 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 31 May 2011 16:05:01 +0000 (09:05 -0700)
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 <hongchao.zhang@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/551
Tested-by: Hudson
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
lustre/tests/recovery-small.sh

index 2f3e767..ea53069 100755 (executable)
@@ -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