projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pmemblk, dev-dax: clean up error logs
[fio.git]
/
iolog.c
diff --git
a/iolog.c
b/iolog.c
index 0c3382d37371ee60ebaba0709ce053c7b64243e5..2e8da139566c98320bb0d638445eec9a25ea363e 100644
(file)
--- a/
iolog.c
+++ b/
iolog.c
@@
-277,7
+277,7
@@
restart:
overlap = 1;
if (overlap) {
overlap = 1;
if (overlap) {
- dprint(FD_IO, "iolog: overlap %llu/%lu, %llu/%lu",
+ dprint(FD_IO, "iolog: overlap %llu/%lu, %llu/%lu
\n
",
__ipo->offset, __ipo->len,
ipo->offset, ipo->len);
td->io_hist_len--;
__ipo->offset, __ipo->len,
ipo->offset, ipo->len);
td->io_hist_len--;
@@
-422,7
+422,7
@@
static int read_iolog2(struct thread_data *td, FILE *f)
continue;
}
} else {
continue;
}
} else {
- log_err("bad iolog2: %s", p);
+ log_err("bad iolog2: %s
\n
", p);
continue;
}
continue;
}
@@
-454,7
+454,12
@@
static int read_iolog2(struct thread_data *td, FILE *f)
if (rw == DDIR_WAIT) {
ipo->delay = offset;
} else {
if (rw == DDIR_WAIT) {
ipo->delay = offset;
} else {
- ipo->offset = offset;
+ if (td->o.replay_scale)
+ ipo->offset = offset / td->o.replay_scale;
+ else
+ ipo->offset = offset;
+ ipo_bytes_align(td->o.replay_align, ipo);
+
ipo->len = bytes;
if (rw != DDIR_INVAL && bytes > td->o.max_bs[rw])
td->o.max_bs[rw] = bytes;
ipo->len = bytes;
if (rw != DDIR_INVAL && bytes > td->o.max_bs[rw])
td->o.max_bs[rw] = bytes;