[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 4ed6078695f2991b3f900475b898cb544f53e608..7cd6bbc04255f13b875971737c2c0920568e24cd 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 2df509b24630b05c421c5152709701dfa41bcac9..ced9d859aa853ddf9fb04c2a6395aa418e5f166d 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++;