projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
engines/libaio.c: remove unused 'hipri' setting
[fio.git]
/
engines
/
dev-dax.c
diff --git
a/engines/dev-dax.c
b/engines/dev-dax.c
index 807d8505b21121999bb5f6b6626e7ab0aced1877..422ea634ff1d2530b6dae4ba40747417281ee27c 100644
(file)
--- a/
engines/dev-dax.c
+++ b/
engines/dev-dax.c
@@
-182,8
+182,8
@@
done:
return 0;
}
return 0;
}
-static enum fio_q_status
-
fio_devdax_queue(struct thread_data *td,
struct io_u *io_u)
+static enum fio_q_status
fio_devdax_queue(struct thread_data *td,
+
struct io_u *io_u)
{
fio_ro_check(td, io_u);
io_u->error = 0;
{
fio_ro_check(td, io_u);
io_u->error = 0;
@@
-259,7
+259,7
@@
fio_devdax_get_file_size(struct thread_data *td, struct fio_file *f)
{
char spath[PATH_MAX];
char npath[PATH_MAX];
{
char spath[PATH_MAX];
char npath[PATH_MAX];
- char *rpath;
+ char *rpath
, *basename
;
FILE *sfile;
uint64_t size;
struct stat st;
FILE *sfile;
uint64_t size;
struct stat st;
@@
-289,7
+289,8
@@
fio_devdax_get_file_size(struct thread_data *td, struct fio_file *f)
}
/* check if DAX device */
}
/* check if DAX device */
- if (strcmp("/sys/class/dax", rpath)) {
+ basename = strrchr(rpath, '/');
+ if (!basename || strcmp("dax", basename+1)) {
log_err("%s: %s not a DAX device!\n",
td->o.name, f->file_name);
}
log_err("%s: %s not a DAX device!\n",
td->o.name, f->file_name);
}