summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b765bec)
Signed-off-by: Jens Axboe <axboe@fb.com>
unsigned long long offset;
unsigned int bytes;
int reads, writes, waits, fileno = 0, file_action = 0; /* stupid gcc */
unsigned long long offset;
unsigned int bytes;
int reads, writes, waits, fileno = 0, file_action = 0; /* stupid gcc */
+ char *rfname, *fname, *act;
char *str, *p;
enum fio_ddir rw;
char *str, *p;
enum fio_ddir rw;
* for doing verifications.
*/
str = malloc(4096);
* for doing verifications.
*/
str = malloc(4096);
- fname = malloc(256+16);
+ rfname = fname = malloc(256+16);
act = malloc(256+16);
reads = writes = waits = 0;
act = malloc(256+16);
reads = writes = waits = 0;
struct io_piece *ipo;
int r;
struct io_piece *ipo;
int r;
- r = sscanf(p, "%256s %256s %llu %u", fname, act, &offset,
+ r = sscanf(p, "%256s %256s %llu %u", rfname, act, &offset,
+
+ if (td->o.replay_redirect)
+ fname = td->o.replay_redirect;
+
if (r == 4) {
/*
* Check action first
if (r == 4) {
/*
* Check action first
if (writes && read_only) {
log_err("fio: <%s> skips replay of %d writes due to"
if (writes && read_only) {
log_err("fio: <%s> skips replay of %d writes due to"