Helpful for debugging.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
+ char buf[FIO_VERROR_SIZE];
- td_verror(td, __e, "open");
+ snprintf(buf, sizeof(buf) - 1, "open(%s)", f->file_name);
+
+ td_verror(td, __e, buf);
if (__e == EINVAL && td->o.odirect)
log_err("fio: destination does not support O_DIRECT\n");
if (__e == EMFILE)
if (__e == EINVAL && td->o.odirect)
log_err("fio: destination does not support O_DIRECT\n");
if (__e == EMFILE)
unsigned int cpucycle;
};
unsigned int cpucycle;
};
+#define FIO_VERROR_SIZE 128
+
/*
* This describes a single thread/process executing a fio job.
*/
struct thread_data {
struct thread_options o;
/*
* This describes a single thread/process executing a fio job.
*/
struct thread_data {
struct thread_options o;
+ char verror[FIO_VERROR_SIZE];
pthread_t thread;
int thread_number;
int groupid;
pthread_t thread;
int thread_number;
int groupid;