Increase OPT_LEN_MAX
authorZhang, Yanmin <yanmin_zhang@linux.intel.com>
Wed, 3 Mar 2010 07:26:30 +0000 (08:26 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 3 Mar 2010 07:26:30 +0000 (08:26 +0100)
When I run fio with lots of files on a disk, parameter filename's length
is more than 1024 and tail filenames are cut.

Below is a patch to increase OPT_LEN_MAX to 4096.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
parse.h

diff --git a/parse.h b/parse.h
index 5b1a53deb748a1beb61dfce5ae5b62c087b7c2c4..ae6bdead38fe25f16bbcd20b7c8ce751ce4b1f22 100644 (file)
--- a/parse.h
+++ b/parse.h
@@ -25,7 +25,7 @@ struct value_pair {
        const char *help;               /* help text for sub option */
 };
 
-#define OPT_LEN_MAX    1024
+#define OPT_LEN_MAX    4096
 #define PARSE_MAX_VP   16
 
 /*