bwavgtime=x Average bandwidth stats over an x msec window.
create_serialize=x If 'x', serialize file creation.
create_fsync=x If 'x', run fsync() after file creation.
+ end_fsync=x If 'x', run fsync() after end-of-job.
loops=x Run the job 'x' number of times.
verify=x If 'x' == md5, use md5 for verifies. If 'x' == crc32,
use crc32 for verifies. md5 is 'safer', but crc32 is
}
if (!check_int(p, "fsync", &td->fsync_blocks)) {
fgetpos(f, &off);
+ td->end_fsync = 1;
continue;
}
if (!check_int(p, "startdelay", &td->start_delay)) {
fgetpos(f, &off);
continue;
}
+ if (!check_int(p, "end_fsync", &td->end_fsync)) {
+ fgetpos(f, &off);
+ continue;
+ }
if (!check_int(p, "loops", &td->loops)) {
fgetpos(f, &off);
continue;
if (td->cur_depth)
cleanup_pending_aio(td);
- if (should_fsync(td) && td->fsync_blocks)
+ if (should_fsync(td) && td->end_fsync)
sync_td(td);
}
unsigned int bw_avg_time;
unsigned int create_serialize;
unsigned int create_fsync;
+ unsigned int end_fsync;
unsigned int loops;
unsigned long long file_size;
unsigned long long real_file_size;