projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
aea47d4
)
[PATCH] Allow job file to be last argument
author
Jens Axboe
<axboe@suse.de>
Sat, 27 May 2006 15:26:50 +0000
(17:26 +0200)
committer
Jens Axboe
<axboe@suse.de>
Sat, 27 May 2006 15:26:50 +0000
(17:26 +0200)
Use fio -f <jobfile> or just fio <jobfile>
fio-ini.c
patch
|
blob
|
blame
|
history
diff --git
a/fio-ini.c
b/fio-ini.c
index 126e32520448c489d31515a1803d57b7c9028526..23810bafd2423210f7bb3b015e31695090d5bba2 100644
(file)
--- a/
fio-ini.c
+++ b/
fio-ini.c
@@
-969,6
+969,9
@@
static void parse_cmd_line(int argc, char *argv[])
exit(0);
}
}
exit(0);
}
}
+
+ if (!ini_file && argc > 1 && argv[argc - 1][0] != '-')
+ ini_file = strdup(argv[argc - 1]);
}
static void free_shm(void)
}
static void free_shm(void)
@@
-1030,8
+1033,10
@@
int parse_options(int argc, char *argv[])
return 1;
}
return 1;
}
- if (parse_jobs_ini(ini_file))
+ if (parse_jobs_ini(ini_file)) {
+ usage(argv[0]);
return 1;
return 1;
+ }
return 0;
}
return 0;
}