Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
--bandwidth-log Generate per-job bandwidth logs
--minimal Minimal (terse) output
--version Print version info and exit
--bandwidth-log Generate per-job bandwidth logs
--minimal Minimal (terse) output
--version Print version info and exit
+ --terse-version=type Terse version output format
--help Print this page
--cmdhelp=cmd Print command help, "all" for all of them
--showcmd Turn a job file into command line options
--help Print this page
--cmdhelp=cmd Print command help, "all" for all of them
--showcmd Turn a job file into command line options
.TP
.B \-\-version
Display version information and exit.
.TP
.B \-\-version
Display version information and exit.
+.TP
+.B \-\-terse\-version\fR=\fPtype
+Terse version output format
.SH "JOB FILE FORMAT"
Job files are in `ini' format. They consist of one or more
job definitions, which begin with a job name in square brackets and
.SH "JOB FILE FORMAT"
Job files are in `ini' format. They consist of one or more
job definitions, which begin with a job name in square brackets and
extern int fio_gtod_cpu;
extern enum fio_cs fio_clock_source;
extern int warnings_fatal;
extern int fio_gtod_cpu;
extern enum fio_cs fio_clock_source;
extern int warnings_fatal;
+extern int terse_version;
extern struct thread_data *threads;
extern struct thread_data *threads;
int nr_job_sections = 0;
char *exec_profile = NULL;
int warnings_fatal = 0;
int nr_job_sections = 0;
char *exec_profile = NULL;
int warnings_fatal = 0;
int write_bw_log = 0;
int read_only = 0;
int write_bw_log = 0;
int read_only = 0;
.has_arg = required_argument,
.val = 'j',
},
.has_arg = required_argument,
.val = 'j',
},
+ {
+ .name = (char *) "terse-version",
+ .has_arg = required_argument,
+ .val = 'V',
+ },
printf("\t--bandwidth-log\tGenerate per-job bandwidth logs\n");
printf("\t--minimal\tMinimal (terse) output\n");
printf("\t--version\tPrint version info and exit\n");
printf("\t--bandwidth-log\tGenerate per-job bandwidth logs\n");
printf("\t--minimal\tMinimal (terse) output\n");
printf("\t--version\tPrint version info and exit\n");
+ printf("\t--terse-version=x Terse version output format\n");
printf("\t--help\t\tPrint this page\n");
printf("\t--cmdhelp=cmd\tPrint command help, \"all\" for all of"
" them\n");
printf("\t--help\t\tPrint this page\n");
printf("\t--cmdhelp=cmd\tPrint command help, \"all\" for all of"
" them\n");
case 'v':
log_info("%s\n", fio_version_string);
exit(0);
case 'v':
log_info("%s\n", fio_version_string);
exit(0);
+ case 'V':
+ terse_version = atoi(optarg);
+ if (terse_version != 2) {
+ log_err("fio: bad terse version format\n");
+ exit_val = 1;
+ do_exit++;
+ }
+ break;
case 'e':
if (!strcmp("always", optarg))
eta_print = FIO_ETA_ALWAYS;
case 'e':
if (!strcmp("always", optarg))
eta_print = FIO_ETA_ALWAYS;