[PATCH] imsm: New disk controller domains

From
Mariusz Tkaczyk <hidden>
Date
2017-09-07 14:05:09
Add disk controller domain for nvme and vmd devices to prevent moving 
spares between different domains.

Signed-off-by: Mariusz Tkaczyk <redacted>
---
 super-intel.c | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/super-intel.c b/super-intel.c
index 125c3a9..bbe7bc7 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",
-- 
1.8.3.1
Thread (2 messages) 2 messages, 2 authors, last reply 2017-10-02
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help