#include "lib/getopt.h"
-static char fio_version_string[] = "fio 1.44.3";
+static char fio_version_string[] = "fio 1.50-rc2";
#define FIO_RANDSEED (0xb1899bedUL)
if (global)
return &def_thread;
- if (thread_number >= max_jobs)
+ if (thread_number >= max_jobs) {
+ log_err("error: maximum number of jobs (%d) reached.\n",
+ max_jobs);
return NULL;
+ }
td = &threads[thread_number++];
*td = *parent;
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;
read_only = 1;
break;
case 'v':
- printf("%s\n", fio_version_string);
+ /* already being printed, just quit */
exit(0);
case 'e':
if (!strcmp("always", optarg))
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;
}