Signed-off-by: Jens Axboe <axboe@fb.com>
static int open_state_file(const char *name, const char *prefix, int num,
int for_write)
{
static int open_state_file(const char *name, const char *prefix, int num,
int for_write)
{
fd = open(out, flags, 0644);
if (fd == -1) {
perror("fio: open state file");
fd = open(out, flags, 0644);
if (fd == -1) {
perror("fio: open state file");
+ log_err("fio: state file: %s (for_write=%d)\n", out, for_write);