multipath-tools: Generalizing the vpd 0x83 processing with correct buffer length
authorMoger, Babu <Babu.Moger@netapp.com>
Wed, 22 Feb 2012 18:09:10 +0000 (18:09 +0000)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Wed, 22 Feb 2012 21:45:39 +0000 (22:45 +0100)
commitad83502eddaca2770745fb15cf664e2ebb990df6
treed03a0c4a79811f1b534ccdaa35d1935d36990b7b
parente80c428a607e6a75aa5aabd23bdd9f07faf0a2d5
multipath-tools: Generalizing the vpd 0x83 processing with correct buffer length

Right now the buffer length for inquiry vpd 0x83 is hardcoded to 128 bytes.
This can cause problems if the length of all the designation descriptors
exceed 128 bytes. This was causing me issues while configuring my storage
with alua. I have generalized the processing with correct buffer length.
Patch has been tested with NetApp E-series storage.

Signed-off-by: Babu Moger <babu.moger@netapp.com>
libmultipath/prioritizers/alua_rtpg.c