Increase OPT_LEN_MAX
[fio.git] / parse.h
diff --git a/parse.h b/parse.h
index 0cdc0894ae207be6f674c8ca963462c7af423b7f..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
 
 /*
@@ -48,6 +48,7 @@ struct fio_option {
        const char *def;                /* default setting */
        const struct value_pair posval[PARSE_MAX_VP];/* possible values */
        const char *parent;             /* parent option */
+       int (*verify)(struct fio_option *, void *);
 };
 
 typedef int (str_cb_fn)(void *, char *);
@@ -61,7 +62,7 @@ extern void options_init(struct fio_option *);
 
 extern void strip_blank_front(char **);
 extern void strip_blank_end(char *);
-extern int str_to_decimal(const char *, long long *, int);
+extern int str_to_decimal(const char *, long long *, int, void *);
 
 /*
  * Handlers for the options