Addendum to patch for GH-196: skip file size validation on seqwr tests.

This commit is contained in:
Alexey Kopytov
2017-12-23 13:26:53 +03:00
parent b9c6b3a2df
commit f9d79aefe5
2 changed files with 8 additions and 2 deletions

View File

@ -380,6 +380,9 @@ int file_prepare(void)
return 1;
}
if (test_mode == MODE_WRITE)
continue;
/* Validate file size */
struct stat buf;
if (fstat(files[i], &buf))

View File

@ -244,14 +244,17 @@ GH-196: fileio: validate file sizes on startup
########################################################################
$ args="$fileio_args --verbosity=2"
$ sysbench $args --file-total-size=1M prepare
$ sysbench $args --file-test-mode=rndwr run
$ sysbench $args --file-test-mode=rndwr --events=1 run
FATAL: Size of file 'test_file.0' is 256KiB, but at least 8MiB is expected.
WARNING: Did you run 'prepare' with different --file-total-size or --file-num values?
[1]
$ sysbench $args cleanup
$ sysbench $args --file-num=8 prepare
$ sysbench $args --file-test-mode=rndwr run
$ sysbench $args --file-test-mode=rndwr --events=1 run
FATAL: Size of file 'test_file.0' is 4MiB, but at least 8MiB is expected.
WARNING: Did you run 'prepare' with different --file-total-size or --file-num values?
[1]
$ sysbench $args --file-num=8 cleanup
$ sysbench $args --file-total-size=1M prepare
$ sysbench $args --file-test-mode=seqwr --events=1 run
$ sysbench $args cleanup