multipathd: use 0 for initial pg if there are no priority groups
authorMike Snitzer <snitzer@redhat.com>
Wed, 20 Apr 2011 21:24:00 +0000 (17:24 -0400)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Thu, 21 Apr 2011 04:34:17 +0000 (06:34 +0200)
commit0896abe6fe3118df08ef02c9d10be453062a440a
tree9f3a12bb28743d2aab4bcff32d2cd8cbb86498dc
parentf625ea2ddf542851e5c1e4f8723dbc75d9961c33
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.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
libmultipath/dmparser.c