parse: handle comma-separated options
authorOleg Latin <oleglatin@yandex-team.ru>
Wed, 24 Nov 2021 17:17:04 +0000 (20:17 +0300)
committerOleg Latin <oleglatin@yandex-team.ru>
Wed, 24 Nov 2021 17:17:13 +0000 (20:17 +0300)
commitff236b51e8b92470eaed72a3a3b1fbf45d786645
tree311ccb8e914bbcef6a70cfbf883c4cc5e859002b
parent1d08bfb018e600cc47f122fb78c02bf74b84dee8
parse: handle comma-separated options

Option parser does not properly handle 'sync_file_range' option with
multiple flags.  It was due to opt_len() only use ':' as delimiter, so
only last flag in comma-separated list have effect.

This patch adds ',' as a delimiter.  All flags are correctly ORed now.

Fixes: https://github.com/axboe/fio/issues/1234
Signed-off-by: Oleg Latin <oleglatin@yandex-team.ru>
parse.c