projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
profiles/act: use the right options
[fio.git]
/
engines
/
dev-dax.c
diff --git
a/engines/dev-dax.c
b/engines/dev-dax.c
index 45aca4e82382393f12977ce9fe95abd0fd51ca06..235a31e640b17d69c42df5a53aa25b697ca16aec 100644
(file)
--- a/
engines/dev-dax.c
+++ b/
engines/dev-dax.c
@@
-106,7
+106,7
@@
static int fio_devdax_prep_limited(struct thread_data *td, struct io_u *io_u)
struct fio_devdax_data *fdd = FILE_ENG_DATA(f);
if (io_u->buflen > f->real_file_size) {
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;
}
return EIO;
}
@@
-213,8
+213,8
@@
static int fio_devdax_init(struct thread_data *td)
if ((o->rw_min_bs & page_mask) &&
(o->fsync_blocks || o->fdatasync_blocks)) {
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;
}
return 1;
}
@@
-272,8
+272,8
@@
fio_devdax_get_file_size(struct thread_data *td, struct fio_file *f)
rc = stat(f->file_name, &st);
if (rc < 0) {
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;
}
return -errno;
}
@@
-282,8
+282,8
@@
fio_devdax_get_file_size(struct thread_data *td, struct fio_file *f)
rpath = realpath(spath, npath);
if (!rpath) {
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;
}
return -errno;
}
@@
-298,15
+298,15
@@
fio_devdax_get_file_size(struct thread_data *td, struct fio_file *f)
sfile = fopen(spath, "r");
if (!sfile) {
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) {
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;
}
return 1;
}