068: run fsstress in read/write mode
authorEric Sandeen <sandeen@sandeen.net>
Wed, 8 Feb 2012 18:30:07 +0000 (12:30 -0600)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 8 Feb 2012 18:30:07 +0000 (12:30 -0600)
Jan Kara was testing filesystem freeze, and was consistently locking
up, although my tests of 068 were passing.  He pointed out that
he was running in read/write mode, and it was atime updates causing
the trouble.  Sure enough, dropping "-w" from fsstress locked me up
too.  Change this so we get better (and more realistic) coverage.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
cc: Jan Kara <jack@suse.cz>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
068

diff --git a/068 b/068
index 6f08f188b147a5522ccc9834ac30e5445fffa9ab..b595d1df4bc32f4311f499bf156ada1c595c47d0 100755 (executable)
--- a/068
+++ b/068
@@ -79,8 +79,9 @@ touch $tmp.running
     nops=200
     while [ -f "$tmp.running" ]
       do
-      #        -w ensures that the only ops are ones which cause write I/O
-      $FSSTRESS_PROG -d $STRESS_DIR -w -p $procs -n $nops $FSSTRESS_AVOID \
+      # We do both read & write IO - not only is this more realistic,
+      # but it also potentially tests atime updates
+      $FSSTRESS_PROG -d $STRESS_DIR -p $procs -n $nops $FSSTRESS_AVOID \
          > /dev/null 2>&1
     done