projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix wrong time conversion on --status-interval= command line option
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index 6a65e552fc71fb0a793a4c0d0385145696e02d09..adb9066b14a86631e0019967889863c091f0b2ac 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-676,6
+676,11
@@
static int fixup_options(struct thread_data *td)
if (td->o.rand_seed)
td->o.rand_repeatable = 0;
if (td->o.rand_seed)
td->o.rand_repeatable = 0;
+ if ((td->io_ops->flags & FIO_NOEXTEND) && td->o.file_append) {
+ log_err("fio: can't append/extent with IO engine %s\n", td->io_ops->name);
+ ret = 1;
+ }
+
return ret;
}
return ret;
}
@@
-1026,10
+1031,10
@@
static int add_job(struct thread_data *td, const char *jobname, int job_add_num,
file_alloced = 1;
if (o->nr_files == 1 && exists_and_not_file(jobname))
file_alloced = 1;
if (o->nr_files == 1 && exists_and_not_file(jobname))
- add_file(td, jobname, job_add_num);
+ add_file(td, jobname, job_add_num
, 0
);
else {
for (i = 0; i < o->nr_files; i++)
else {
for (i = 0; i < o->nr_files; i++)
- add_file(td, make_filename(fname, o, jobname, job_add_num, i), job_add_num);
+ add_file(td, make_filename(fname, o, jobname, job_add_num, i), job_add_num
, 0
);
}
}
}
}
@@
-1933,7
+1938,7
@@
int parse_cmd_line(int argc, char *argv[], int client_type)
case 'L': {
long long val;
case 'L': {
long long val;
- if (check_str_time(optarg, &val,
1
)) {
+ if (check_str_time(optarg, &val,
0
)) {
log_err("fio: failed parsing time %s\n", optarg);
do_exit++;
exit_val = 1;
log_err("fio: failed parsing time %s\n", optarg);
do_exit++;
exit_val = 1;