[PATCH] Remove redundant -f job option
authorJens Axboe <axboe@suse.de>
Fri, 16 Jun 2006 08:00:50 +0000 (10:00 +0200)
committerJens Axboe <axboe@suse.de>
Fri, 16 Jun 2006 08:00:50 +0000 (10:00 +0200)
It just confuses the job file setup.

README
init.c

diff --git a/README b/README
index 4ed6078..7cd6bbc 100644 (file)
--- a/README
+++ b/README
@@ -46,7 +46,6 @@ $ fio
        -t <sec> Runtime in seconds
        -l Generate per-job latency logs
        -w Generate per-job bandwidth logs
-       -f <file> Read <file> for job descriptions
        -o <file> Log output to file
        -m Minimal (terse) output
        -h Print help info
diff --git a/init.c b/init.c
index 2df509b..ced9d85 100644 (file)
--- a/init.c
+++ b/init.c
@@ -1033,18 +1033,12 @@ static int parse_cmd_line(int argc, char *argv[])
 {
        int c, idx = 1, ini_idx = 0;
 
-       while ((c = getopt(argc, argv, "t:o:f:lwvhm")) != EOF) {
+       while ((c = getopt(argc, argv, "t:o:lwvhm")) != EOF) {
                switch (c) {
                        case 't':
                                def_timeout = atoi(optarg);
                                idx++;
                                break;
-                       case 'f':
-                               ini_idx++;
-                               ini_file = realloc(ini_file, ini_idx * sizeof(char *));
-                               ini_file[ini_idx - 1] = strdup(optarg);
-                               idx++;
-                               break;
                        case 'l':
                                write_lat_log = 1;
                                idx++;