X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=parse.h;h=e6663ed484ed343b096ebc33a28a52560f642aea;hb=a0b72421064b5dd7312812509e9babe923063deb;hp=b47a02c78263d038c6cd8d3c04c61611c3c55c2e;hpb=a871240086ca6bdc52f79d7459ed283c5a359299;p=fio.git diff --git a/parse.h b/parse.h index b47a02c7..e6663ed4 100644 --- a/parse.h +++ b/parse.h @@ -37,8 +37,8 @@ struct value_pair { void *cb; /* sub-option callback */ }; -#define OPT_LEN_MAX 4096 -#define PARSE_MAX_VP 24 +#define OPT_LEN_MAX 8192 +#define PARSE_MAX_VP 32 /* * Option define @@ -125,7 +125,7 @@ static inline void *td_var(void *to, const struct fio_option *o, else ret = to; - return ret + offset; + return (void *) ((uintptr_t) ret + offset); } static inline int parse_is_percent(unsigned long long val) @@ -133,6 +133,11 @@ static inline int parse_is_percent(unsigned long long val) return val <= -1ULL && val >= (-1ULL - 100ULL); } +static inline int parse_is_percent_uncapped(unsigned long long val) +{ + return (long long)val <= -1; +} + struct print_option { struct flist_head list; char *name;