Skip to content

Commit

Permalink
Merge branch 'nfs' of https://github.com/panxiao2014/fio
Browse files Browse the repository at this point in the history
* 'nfs' of https://github.com/panxiao2014/fio:
  Fix issue when start randwrite by using nfs engine
  • Loading branch information
axboe committed Jun 14, 2024
2 parents bd7492a + 6cd5aeb commit 05a52be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/nfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ static int fio_libnfs_open(struct thread_data *td, struct fio_file *f)
nfs_data = calloc(1, sizeof(struct nfs_data));
nfs_data->options = options;

if (td->o.td_ddir == TD_DDIR_WRITE)
if (td_write(td))
flags |= O_CREAT | O_RDWR;
else
flags |= O_RDWR;
Expand Down

0 comments on commit 05a52be

Please sign in to comment.