]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: validate the number of imsm volumes per controller
authorLabun, Marcin <Marcin.Labun@intel.com>
Mon, 30 Jan 2012 01:00:10 +0000 (12:00 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 30 Jan 2012 01:00:10 +0000 (12:00 +1100)
commitca9de185a3b96720adcc5120f6a34c5f9bb98b3f
treefe6a49bedf72b6965062c024344aca7dc8428961
parentec50f7b6bb3a5218b51e1a953d530ef6b446bcd4
imsm: validate the number of imsm volumes per controller

IMSM OROM limits number of volumes per controller. Volumes
above the limit are blocked in OROM. mdadm should follow OROM limitations
in this area. Therefore we need to count number of volumes on the devices
attached to SATA (ahci driver) or SAS (isci) controller.  Adding a new volume
must be blocked if the number of volumes on devices attached to the given
controller is exceeded.

Signed-off-by: Marcin Labun <marcin.labun@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c