projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Allow proper sharing of files
[fio.git]
/
fio-ini.c
diff --git
a/fio-ini.c
b/fio-ini.c
index c94062279989285ed20a0326e2297f86bf94029b..0c83f70246d4b23f59af47b54a862920db2edc7f 100644
(file)
--- a/
fio-ini.c
+++ b/
fio-ini.c
@@
-37,7
+37,7
@@
#define DEF_ZONE_SIZE (0)
#define DEF_ZONE_SKIP (0)
#define DEF_ZONE_SIZE (0)
#define DEF_ZONE_SKIP (0)
-static char fio_version_string[] = "fio 1.
1
";
+static char fio_version_string[] = "fio 1.
3
";
static int repeatable = DEF_RAND_REPEAT;
static char *ini_file;
static int repeatable = DEF_RAND_REPEAT;
static char *ini_file;
@@
-213,9
+213,9
@@
static int add_job(struct thread_data *td, const char *jobname, int prioclass,
if (td->filetype == FIO_TYPE_FILE) {
if (td->directory[0] != '\0')
if (td->filetype == FIO_TYPE_FILE) {
if (td->directory[0] != '\0')
- sprintf(td->file_name, "%s/%s.%d", td->directory, jobname, td->
thread_number
);
+ sprintf(td->file_name, "%s/%s.%d", td->directory, jobname, td->
jobnum
);
else
else
- sprintf(td->file_name, "%s.%d", jobname, td->
thread_number
);
+ sprintf(td->file_name, "%s.%d", jobname, td->
jobnum
);
} else
strcpy(td->file_name, jobname);
} else
strcpy(td->file_name, jobname);
@@
-263,6
+263,7
@@
static int add_job(struct thread_data *td, const char *jobname, int prioclass,
td_new->numjobs = 1;
td_new->stonewall = 0;
td_new->numjobs = 1;
td_new->stonewall = 0;
+ td_new->jobnum = numjobs;
if (add_job(td_new, jobname, prioclass, prio))
goto err;
if (add_job(td_new, jobname, prioclass, prio))
goto err;