]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: count arrays under VMD HBAs correctly
authorAlexey Obitotskiy <aleksey.obitotskiy@intel.com>
Mon, 9 Jan 2017 12:12:22 +0000 (13:12 +0100)
committerJes Sorensen <Jes.Sorensen@gmail.com>
Mon, 9 Jan 2017 12:48:55 +0000 (07:48 -0500)
commitd3c11416584cc973d0032dd0ff85ae86af8c13da
tree077c3b1649d7433a334dcbed211fc70e1fd138a3
parent30730cb8c47641d1a0ac215122060a3194962448
imsm: count arrays under VMD HBAs correctly

OROM defines maximum number of arrays supported. On array creation mdadm
checks if number of arrays doesn't exceed that limit, however it is not
calculated correctly for VMD now.

The current code performs a lookup of HBA using the id. VMD HBAs have
the same id so each lookup returns the same structure (first
encountered). Take a different approach for VMD HBAs. As id is not
unique and cannot be used for lookups, iterate over all VMD HBAs and
compare both id and HBA path.

Signed-off-by: Alexey Obitotskiy <aleksey.obitotskiy@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
platform-intel.c
platform-intel.h
super-intel.c