summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f42557f)
The default behavior of fio was to basename() the log filename
preventing relocating it into another directory.
This patch simply removes the basename() that doesn't provides any real
feature but only limit the usage.
Patch tested with genfio with success while relocating to /tmp.
void finish_log_named(struct thread_data *td, struct io_log *log,
const char *prefix, const char *postfix)
{
void finish_log_named(struct thread_data *td, struct io_log *log,
const char *prefix, const char *postfix)
{
- char file_name[256], *p;
snprintf(file_name, sizeof(file_name), "%s_%s.log", prefix, postfix);
snprintf(file_name, sizeof(file_name), "%s_%s.log", prefix, postfix);
- p = basename(file_name);
if (td->client_type == FIO_CLIENT_TYPE_GUI) {
if (td->client_type == FIO_CLIENT_TYPE_GUI) {
- fio_send_iolog(td, log, p);
+ fio_send_iolog(td, log, file_name);
free(log->log);
free(log);
} else
free(log->log);
free(log);
} else
+ __finish_log(log, file_name);
}
void finish_log(struct thread_data *td, struct io_log *log, const char *name)
}
void finish_log(struct thread_data *td, struct io_log *log, const char *name)