From: Jens Axboe Date: Thu, 11 Oct 2007 19:41:41 +0000 (+0200) Subject: Set O_NOATIME on open for non-regular files X-Git-Tag: fio-1.17.2~8 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=ad92396cc21055cee93470dcf65e82ccde03aac5;p=fio.git Set O_NOATIME on open for non-regular files Signed-off-by: Jens Axboe --- diff --git a/filesetup.c b/filesetup.c index 47ddacfc..fca90be7 100644 --- a/filesetup.c +++ b/filesetup.c @@ -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);