From ad92396cc21055cee93470dcf65e82ccde03aac5 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 11 Oct 2007 21:41:41 +0200 Subject: [PATCH] Set O_NOATIME on open for non-regular files Signed-off-by: Jens Axboe --- filesetup.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.25.1