Whamcloud - gitweb
b=20680 add sleep to expire stat cache
authorMikhail Pershin <tappro@sun.com>
Mon, 5 Apr 2010 18:49:48 +0000 (11:49 -0700)
committerRobert Read <robert.read@oracle.com>
Mon, 5 Apr 2010 18:49:48 +0000 (11:49 -0700)
i=grev

lustre/tests/replay-vbr.sh

index b278482..ada1c2c 100644 (file)
@@ -425,6 +425,7 @@ test_0r() {
     sleep 1
     mtime_pre=$(do_node $CLIENT1 stat --format=%Y $file)
     do_node $CLIENT1 touch $file
     sleep 1
     mtime_pre=$(do_node $CLIENT1 stat --format=%Y $file)
     do_node $CLIENT1 touch $file
+    sleep 1 # avoid stat caching
     mtime_post=$(do_node $CLIENT1 stat --format=%Y $file)
     zconf_umount $CLIENT2 $MOUNT
     facet_failover $SINGLEMDS
     mtime_post=$(do_node $CLIENT1 stat --format=%Y $file)
     zconf_umount $CLIENT2 $MOUNT
     facet_failover $SINGLEMDS