[Top] [All Lists]

[PATCH] xfstests: 068: run fsstress in read/write mode

To: xfs-oss <xfs@xxxxxxxxxxx>, Jan Kara <jack@xxxxxxx>
Subject: [PATCH] xfstests: 068: run fsstress in read/write mode
From: Eric Sandeen <sandeen@xxxxxxxxxx>
Date: Tue, 07 Feb 2012 11:29:44 -0600
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0) Gecko/20120129 Thunderbird/10.0
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@xxxxxxxxxx>
cc: Jan Kara <jack@xxxxxxx>

diff --git a/068 b/068
index 6f08f18..b15409e 100755
--- a/068
+++ b/068
@@ -79,8 +79,9 @@ touch $tmp.running
     while [ -f "$tmp.running" ]
-      #        -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

<Prev in Thread] Current Thread [Next in Thread>