projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3f1e3af
)
Use aux_path, if set, when loading verify state
author
Andrey Kuzmin
<andrey.v.kuzmin@gmail.com>
Thu, 16 Jan 2020 15:15:40 +0000
(08:15 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Thu, 16 Jan 2020 15:16:02 +0000
(08:16 -0700)
Fixes: https://github.com/axboe/fio/issues/908
Signed-off-by: Jens Axboe <axboe@kernel.dk>
backend.c
patch
|
blob
|
blame
|
history
diff --git
a/backend.c
b/backend.c
index 0d1f473442e368cd82443ae0352dba5878a2b072..936203dcb1c4858b1b3f7ddea23ab5f965e04bb4 100644
(file)
--- a/
backend.c
+++ b/
backend.c
@@
-2120,8
+2120,16
@@
static int fio_verify_load_state(struct thread_data *td)
td->thread_number - 1, &data);
if (!ret)
verify_assign_state(td, data);
- } else
- ret = verify_load_state(td, "local");
+ } else {
+ char prefix[PATH_MAX];
+
+ if (aux_path)
+ sprintf(prefix, "%s%clocal", aux_path,
+ FIO_OS_PATH_SEPARATOR);
+ else
+ strcpy(prefix, "local");
+ ret = verify_load_state(td, prefix);
+ }
return ret;
}