Beruflich Dokumente
Kultur Dokumente
com/solutions/64446
1 of 4 2/6/2016 3:05 PM
Maximum amount of paths with device-mapper-multipath in RHEL 5 ... https://access.redhat.com/solutions/64446
/*
* read the paths
*/
r = read_param(_params, shift(as), &pg->nr_pgpaths, &ti->error);
if (r)
goto bad;
r = read_param(_params + 1, shift(as), &nr_selector_args, &ti->error);
if (r)
goto bad;
static int read_param(struct param *param, char *str, unsigned *v, char **error)
{
if (!str ||
(sscanf(str, "%u", v) != 1) ||
(*v < param->min) ||
(*v > param->max)) {
*error = param->error;
return -EINVAL;
}
return 0;
}
2 of 4 2/6/2016 3:05 PM
Maximum amount of paths with device-mapper-multipath in RHEL 5 ... https://access.redhat.com/solutions/64446
3 of 4 2/6/2016 3:05 PM
Maximum amount of paths with device-mapper-multipath in RHEL 5 ... https://access.redhat.com/solutions/64446
4 of 4 2/6/2016 3:05 PM