From: Mariusz Tkaczyk Date: Thu, 7 Sep 2017 14:05:09 +0000 (+0200) Subject: imsm: New disk controller domains X-Git-Tag: mdadm-4.1-rc1~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6839718190d7418aadc858edafb8fb4b67287b0;p=thirdparty%2Fmdadm.git 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 Signed-off-by: Jes Sorensen --- diff --git a/super-intel.c b/super-intel.c index 125c3a98..bbe7bc71 100644 --- a/super-intel.c +++ b/super-intel.c @@ -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",