projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
engines/io_uring: eliminate FDP memory corruption risk
[fio.git]
/
filesetup.c
diff --git
a/filesetup.c
b/filesetup.c
index 816d10816e58acf2ba871bc8b78e733849914432..cb42a852c8cf3728571e54f55103e17d802ef4c4 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-749,6
+749,11
@@
open_again:
if (!read_only)
flags |= O_RDWR;
if (!read_only)
flags |= O_RDWR;
+ if (td->o.verify_only) {
+ flags &= ~O_RDWR;
+ flags |= O_RDONLY;
+ }
+
if (f->filetype == FIO_TYPE_FILE && td->o.allow_create)
flags |= O_CREAT;
if (f->filetype == FIO_TYPE_FILE && td->o.allow_create)
flags |= O_CREAT;
@@
-1406,8
+1411,8
@@
done:
td_restore_runstate(td, old_state);
td_restore_runstate(td, old_state);
- if (td->o.
fdp
) {
- err =
f
dp_init(td);
+ if (td->o.
dp_type != FIO_DP_NONE
) {
+ err = dp_init(td);
if (err)
goto err_out;
}
if (err)
goto err_out;
}