Add the number of priority groups to the dm-multipath constructor string. This should make parsing the string a bit simpler. [Kevin Corry] --- diff/drivers/md/dm-mpath.c 2004-01-16 14:41:56.000000000 +0000 +++ source/drivers/md/dm-mpath.c 2004-01-16 16:38:04.000000000 +0000 @@ -313,8 +313,8 @@ /*----------------------------------------------------------------- * Constructor/argument parsing: - * [ - * [ ]] + * [ + * [ []* ]+ ]+ *---------------------------------------------------------------*/ struct param { unsigned min; @@ -535,9 +535,10 @@ /* target parameters */ static struct param _params[] = { {1, 60 * 60, ESTR("invalid path test interval")}, + {1, 1024, ESTR("invalid number of priority groups")}, }; - int r; + int r, pg_count; struct multipath *m; struct arg_set as; @@ -554,6 +555,10 @@ if (r) goto bad; + r = read_param(_params + 1, shift(&as), &pg_count, &ti->error); + if (r) + goto bad; + /* parse the priority groups */ while (as.argc) { struct priority_group *pg;