}
}
-static void dump_ipo(struct io_piece *ipo, const char *msg)
-{
- printf("%s\n", msg);
- printf("\toffset %llu, len %lu, fl %x, ddir %d\n", ipo->offset, ipo->len, ipo->flags, ipo->ddir);
-}
-
/*
* log a successful write, so we can unwind the log for verify
*/
else if (ipo->offset > __ipo->offset)
p = &(*p)->rb_right;
else {
- if (ipo->len != __ipo->len) {
- log_err("fio: unexpected ipo overlap!\n");
- log_err("fio: please report this issue.\n");
- dump_ipo(ipo, "ipo");
- dump_ipo(__ipo, "__ipo");
- }
+ dprint(FD_IO, "iolog: overlap %llu/%lu, %llu/%lu",
+ __ipo->offset, __ipo->len,
+ ipo->offset, ipo->len);
td->io_hist_len--;
rb_erase(parent, &td->io_hist_tree);
remove_trim_entry(td, __ipo);
act);
continue;
}
+ fileno = get_fileno(td, fname);
} else if (r == 2) {
rw = DDIR_INVAL;
if (!strcmp(act, "add")) {
{
char file_name[256], *p;
- snprintf(file_name, 200, "%s_%s.log", prefix, postfix);
+ snprintf(file_name, sizeof(file_name), "%s_%s.log", prefix, postfix);
p = basename(file_name);
__finish_log(log, p);
}