projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FIO Windows update
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index 97eac4363bdcb277ca0fca8935b71a74ce2ce777..0a3529d08425fa53bb3319a52ad319079a6e3cbd 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-431,7
+431,9
@@
static int exists_and_not_file(const char *filename)
if (lstat(filename, &sb) == -1)
return 0;
if (lstat(filename, &sb) == -1)
return 0;
- if (S_ISREG(sb.st_mode))
+ /* \\.\ is the device namespace in Windows, where every file
+ * is a device node */
+ if (S_ISREG(sb.st_mode) && strncmp(filename, "\\\\.\\", 4) != 0)
return 0;
return 1;
return 0;
return 1;
@@
-1224,7
+1226,7
@@
int parse_options(int argc, char *argv[])
if (exec_profile)
return 0;
if (exec_profile)
return 0;
- log_err("No jobs
defined(s)
\n\n");
+ log_err("No jobs
(s) defined
\n\n");
usage(argv[0]);
return 1;
}
usage(argv[0]);
return 1;
}