flags |= OS_O_DIRECT;
if (td->o.sync_io)
flags |= O_SYNC;
+ if (f->filetype != FIO_TYPE_FILE)
+ flags |= O_NOATIME;
if (td_write(td)) {
assert(!read_only);
/*
* device/file sizes are zero and no size given, punt
*/
- if ((!total_size || total_size == -1ULL) && !td->o.size) {
+ if ((!total_size || total_size == -1ULL) && !td->o.size &&
+ !(td->io_ops->flags & FIO_NOIO)) {
log_err("%s: you need to specify size=\n", td->o.name);
td_verror(td, EINVAL, "total_file_size");
return 1;