The following changes since commit 1d08bfb018e600cc47f122fb78c02bf74b84dee8: t/dedupe: style fixups (2021-11-21 06:51:11 -0700) are available in the Git repository at: git://git.kernel.dk/fio.git master for you to fetch changes up to 2b00ac1c82d54795911343c9b3b3f4ef64c92d92: Merge branch 'fix-parse-sync-file-range' of https://github.com/oleglatin/fio (2021-11-24 10:27:20 -0700) ---------------------------------------------------------------- Jens Axboe (1): Merge branch 'fix-parse-sync-file-range' of https://github.com/oleglatin/fio Oleg Latin (1): parse: handle comma-separated options parse.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) --- Diff of recent changes: diff --git a/parse.c b/parse.c index 45f4f2d3..d086ee48 100644 --- a/parse.c +++ b/parse.c @@ -477,13 +477,17 @@ static int check_int(const char *p, int *val) static size_t opt_len(const char *str) { + char delimiter[] = {',', ':'}; char *postfix; + unsigned int i; - postfix = strchr(str, ':'); - if (!postfix) - return strlen(str); + for (i = 0; i < FIO_ARRAY_SIZE(delimiter); i++) { + postfix = strchr(str, delimiter[i]); + if (postfix) + return (int)(postfix - str); + } - return (int)(postfix - str); + return strlen(str); } static int str_match_len(const struct value_pair *vp, const char *str)