Merge branch 'master' of https://github.com/dublio/fio
authorJens Axboe <axboe@kernel.dk>
Mon, 31 Jul 2017 14:15:17 +0000 (08:15 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 31 Jul 2017 14:15:17 +0000 (08:15 -0600)
filesetup.c

index 839aefc33752e28c7a8e7a628593f9f8f758066f..0e5599ab16502e9541023af6028e9814f366a844 100644 (file)
@@ -146,6 +146,8 @@ static int extend_file(struct thread_data *td, struct fio_file *f)
                flags |= O_CREAT;
        if (new_layout)
                flags |= O_TRUNC;
+       if (td->o.odirect)
+               flags |= OS_O_DIRECT;
 
 #ifdef WIN32
        flags |= _O_BINARY;