Fix bsrange read,write value option pairs
[fio.git] / parse.c
diff --git a/parse.c b/parse.c
index ad2782f0fbe93c9ddc822015343390d37f967a98..3e15b546bdad4657977345af8f861c52f13d8373 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -453,6 +453,11 @@ static int __handle_option(struct fio_option *o, const char *ptr, void *data,
 
                strncpy(tmp, ptr, sizeof(tmp) - 1);
 
+               /* Handle bsrange with separate read,write values: */
+               p1 = strchr(tmp, ',');
+               if (p1)
+                       *p1 = '\0';
+
                p1 = strchr(tmp, '-');
                if (!p1) {
                        p1 = strchr(tmp, ':');