multipathd: use 0 for initial pg if there are no priority groups
dm-multipath now accommodates a DM table that doesn't have any priority
groups, see: http://git.kernel.org/linus/a490a07a67b7a37
That kernel change imposes that multipathd must pass 0 for the initial
priority group if there aren't any priority groups (currently passes 1).
There is no need to check the multipath target version to decide whether
to pass an initial_pg of 0 or 1 because until recently dm-multipath
never accommodated a DM table with no priority groups.
if (shift >= freechar) {
fprintf(stderr, "mp->params too small
");
--
1.7.3.4
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
04-21-2011, 04:35 AM
Christophe Varoqui
multipathd: use 0 for initial pg if there are no priority groups
On mer., 2011-04-20 at 17:24 -0400, Mike Snitzer wrote:
> dm-multipath now accommodates a DM table that doesn't have any priority
> groups, see: http://git.kernel.org/linus/a490a07a67b7a37
>
> That kernel change imposes that multipathd must pass 0 for the initial
> priority group if there aren't any priority groups (currently passes 1).
>
> There is no need to check the multipath target version to decide whether
> to pass an initial_pg of 0 or 1 because until recently dm-multipath
> never accommodated a DM table with no priority groups.
>
Applied.
--
Christophe Varoqui
OpenSVC - Software to scale
http://www.opensvc.com/
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel