]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
imsm: New disk controller domains
authorMariusz Tkaczyk <mariusz.tkaczyk@intel.com>
Thu, 7 Sep 2017 14:05:09 +0000 (16:05 +0200)
committerJes Sorensen <jsorensen@fb.com>
Mon, 2 Oct 2017 19:42:58 +0000 (15:42 -0400)
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>
super-intel.c

index 125c3a988f896771c23c6b7bfee17de7ad132f3d..bbe7bc71c8da22aeda29222d5e61875a5e19046a 100644 (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",