]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfstests: make 016 work with delaylog
authorDave Chinner <dchinner@redhat.com>
Mon, 14 Feb 2011 00:21:44 +0000 (11:21 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 14 Feb 2011 00:21:44 +0000 (11:21 +1100)
commit2a0cb69ee78219044a6ea4aae2c5f652351a83fb
tree140572f83d5a57d66962b92359356e1de7cdd88e
parent22b5fa843fdc20496170d3cfdeef7af7ef37ac6c
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 <dchinner@redhat.com>
Reviewed-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
016