fio.1: minor fixes
[fio.git] / filesetup.c
index 47ddacfcddef8083b97e6c7f487af14d79475ae4..5134fdbb8af5a52e08e5ad8b60ea820e0caeab9f 100644 (file)
@@ -231,6 +231,8 @@ int generic_open_file(struct thread_data *td, struct fio_file *f)
                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);
@@ -371,7 +373,8 @@ int setup_files(struct thread_data *td)
        /*
         * 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;