imsm: New disk controller domains

Add disk controller domain for nvme and vmd devices to prevent moving
spares between different domains.

Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
This commit is contained in:
Mariusz Tkaczyk 2017-09-07 16:05:09 +02:00 committed by Jes Sorensen
parent e1b942b9af
commit c683971819
1 changed files with 4 additions and 0 deletions

View File

@ -10749,6 +10749,10 @@ static const char *imsm_get_disk_controller_domain(const char *path)
drv = "isci";
else if (hba && hba->type == SYS_DEV_SATA)
drv = "ahci";
else if (hba && hba->type == SYS_DEV_VMD)
drv = "vmd";
else if (hba && hba->type == SYS_DEV_NVME)
drv = "nvme";
else
drv = "unknown";
dprintf("path: %s hba: %s attached: %s\n",