From: Dave Chinner Date: Mon, 14 Feb 2011 00:21:44 +0000 (+1100) Subject: xfstests: make 016 work with delaylog X-Git-Tag: v1.1.0~93 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=2a0cb69ee78219044a6ea4aae2c5f652351a83fb;p=xfstests-dev.git xfstests: make 016 work with delaylog Test 016 fails with delaylog because it measures log traffic to disk and delaylog writes almost nothing to the log for the given test. TO make it work, add sync calls to the work loop to cause the log to be flushed reliably for both delaylog and nodelaylog and hence contain the same number of log records. As a result, the log space consumed by the test is not changed by the delaylog option and the test passes. The test is not significantly slowed down by the addition of the sync calls (takes 15s to run on a single SATA drive). Signed-off-by: Dave Chinner Reviewed-by: Alex Elder Reviewed-by: Christoph Hellwig --- diff --git a/016 b/016 index 980eb0b4..9275ade5 100755 --- a/016 +++ b/016 @@ -100,9 +100,11 @@ _log_traffic() echo " *** fiddle" while [ $count -ge 0 ] do - touch $out - rm $out - let "count = count - 1" + touch $out + sync + rm $out + sync + let "count = count - 1" done echo " *** unmount"