struct fio_devdax_data *fdd = FILE_ENG_DATA(f);
if (io_u->buflen > f->real_file_size) {
- log_err("fio: bs too big for dev-dax engine\n");
+ log_err("dev-dax: bs too big for dev-dax engine\n");
return EIO;
}
if ((o->rw_min_bs & page_mask) &&
(o->fsync_blocks || o->fdatasync_blocks)) {
- log_err("fio: mmap options dictate a minimum block size of "
- "%llu bytes\n", (unsigned long long) page_size);
+ log_err("dev-dax: mmap options dictate a minimum block size of %llu bytes\n",
+ (unsigned long long) page_size);
return 1;
}
rc = stat(f->file_name, &st);
if (rc < 0) {
- log_err("%s: failed to stat file %s: %d\n",
- td->o.name, f->file_name, errno);
+ log_err("%s: failed to stat file %s (%s)\n",
+ td->o.name, f->file_name, strerror(errno));
return -errno;
}
rpath = realpath(spath, npath);
if (!rpath) {
- log_err("%s: realpath on %s failed: %d\n",
- td->o.name, spath, errno);
+ log_err("%s: realpath on %s failed (%s)\n",
+ td->o.name, spath, strerror(errno));
return -errno;
}
sfile = fopen(spath, "r");
if (!sfile) {
- log_err("%s: fopen on %s failed: %d\n",
- td->o.name, spath, errno);
+ log_err("%s: fopen on %s failed (%s)\n",
+ td->o.name, spath, strerror(errno));
return 1;
}
rc = fscanf(sfile, "%lu", &size);
if (rc < 0) {
- log_err("%s: fscanf on %s failed: %d\n",
- td->o.name, spath, errno);
+ log_err("%s: fscanf on %s failed (%s)\n",
+ td->o.name, spath, strerror(errno));
return 1;
}
pmemblk_create(path, bsize, fsize, 0644);
}
if (!pmb->pmb_pool) {
- log_err
- ("fio: enable to open pmemblk pool file (errno %d)\n",
- errno);
+ log_err("pmemblk: unable to open pmemblk pool file %s (%s)\n",
+ path, strerror(errno));
goto error;
}
if (!td->o.use_thread) {
if (!thread_warned) {
thread_warned = 1;
- log_err("fio: must set thread=1 for pmemblk engine\n");
+ log_err("pmemblk: must set thread=1 for pmemblk engine\n");
}
return 1;
}
if (!td->o.odirect && !odirect_warned) {
odirect_warned = 1;
- log_info("fio: direct == 0, but pmemblk is always direct\n");
+ log_info("pmemblk: direct == 0, but pmemblk is always direct\n");
}
if (td->o.allow_create)