projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd7492a
)
Fix issue when start randwrite by using nfs engine
author
Pan Xiao
<pan.xiao@dell.com>
Fri, 14 Jun 2024 05:51:07 +0000
(13:51 +0800)
committer
Pan Xiao
<pan.xiao@dell.com>
Fri, 14 Jun 2024 05:51:07 +0000
(13:51 +0800)
Use td_write(td) instead of td->o.td_ddir == TD_DDIR_WRITE
So fio will treat write and randwrite the same way when start jobs
by using NFS engine.
Pan Xiao <xiaopan@outlook.com>
engines/nfs.c
patch
|
blob
|
blame
|
history
diff --git
a/engines/nfs.c
b/engines/nfs.c
index ce748d1448ef4b852aaa7cef0c2d2579129c70e9..6bc4af1fac76851c4498354bc643ea31bfcbca1a 100644
(file)
--- a/
engines/nfs.c
+++ b/
engines/nfs.c
@@
-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;