It's nice to prefix the log with the proper job name, but that
meant that it would store them in weird places if you used /dev/sda
for the input device, for instance.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
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)
{
+ char file_name[256], *p;
snprintf(file_name, 200, "%s_%s.log", td->o.name, name);
snprintf(file_name, 200, "%s_%s.log", td->o.name, name);
- __finish_log(log, file_name);
+ p = basename(file_name);
+ __finish_log(log, p);