dprint(FD_BLKTRACE, "add devices %s\n", dev);
fileno = add_file_exclusive(td, dev);
+ td->files[fileno]->major = maj;
+ td->files[fileno]->minor = min;
trace_add_open_close_event(td, fileno, FIO_LOG_OPEN_FILE);
last_fileno = fileno;
}
unsigned int cpu;
unsigned int rw_bs[2];
struct fifo *fifo;
- int fd, i;
+ int fd, i, old_state;
struct fio_file *f;
fd = open(filename, O_RDONLY);
fifo = fifo_alloc(TRACE_FIFO_SIZE);
+ old_state = td_bump_runstate(td, TD_SETTING_UP);
+
td->o.size = 0;
cpu = 0;
fifo_free(fifo);
close(fd);
+ td_restore_runstate(td, old_state);
+
if (!td->files_index) {
log_err("fio: did not find replay device(s)\n");
return 1;