projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
HOWTO: make filesize syntax show it can take a typed range
[fio.git]
/
ioengines.c
diff --git
a/ioengines.c
b/ioengines.c
index c90a2ca5bde30e75dec5261130b6b77fb6a1999b..abbaa9a7bd46eb3478706183fad658607d3058d9 100644
(file)
--- a/
ioengines.c
+++ b/
ioengines.c
@@
-281,7
+281,7
@@
int td_io_queue(struct thread_data *td, struct io_u *io_u)
*/
if (td->o.read_iolog_file)
memcpy(&td->last_issue, &io_u->issue_time,
*/
if (td->o.read_iolog_file)
memcpy(&td->last_issue, &io_u->issue_time,
- sizeof(
struct timeval
));
+ sizeof(
io_u->issue_time
));
}
if (ddir_rw(ddir)) {
}
if (ddir_rw(ddir)) {
@@
-356,7
+356,7
@@
int td_io_queue(struct thread_data *td, struct io_u *io_u)
*/
if (td->o.read_iolog_file)
memcpy(&td->last_issue, &io_u->issue_time,
*/
if (td->o.read_iolog_file)
memcpy(&td->last_issue, &io_u->issue_time,
- sizeof(
struct timeval
));
+ sizeof(
io_u->issue_time
));
}
return ret;
}
return ret;
@@
-472,13
+472,13
@@
int td_io_open_file(struct thread_data *td, struct fio_file *f)
goto err;
}
}
goto err;
}
}
-#ifdef FIO_HAVE_
STREAMID
- if (
td->o.fadvise_stream
&&
+#ifdef FIO_HAVE_
WRITE_HINT
+ if (
fio_option_is_set(&td->o, write_hint)
&&
(f->filetype == FIO_TYPE_BLOCK || f->filetype == FIO_TYPE_FILE)) {
(f->filetype == FIO_TYPE_BLOCK || f->filetype == FIO_TYPE_FILE)) {
-
off_t stream = td->o.fadvise_stream
;
+
uint64_t hint = td->o.write_hint
;
- if (
posix_fadvise(f->fd, stream, f->io_size, POSIX_FADV_STREAMID
) < 0) {
- td_verror(td, errno, "f
advise streamid
");
+ if (
fcntl(f->fd, F_SET_RW_HINT, &hint
) < 0) {
+ td_verror(td, errno, "f
cntl write hint
");
goto err;
}
}
goto err;
}
}