[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[dm-devel] [PATCH] dm-multipath: blacklist NVMe devices



Multipath works at the request level and NVMe bypasses the request layer. So
multipath is not going to be supported for NVMe devices. Add NVMe to default
blacklist.

Signed-off-by: Vaughan Cao <vaughan cao oracle com>
---
 libmultipath/blacklist.c | 6 ++++++
 multipath.conf.defaults  | 1 +
 2 files changed, 7 insertions(+)

diff --git a/libmultipath/blacklist.c b/libmultipath/blacklist.c
index 79ddcde..651bd7e 100644
--- a/libmultipath/blacklist.c
+++ b/libmultipath/blacklist.c
@@ -176,6 +176,12 @@ setup_default_blist (struct config * conf)
 	if (store_ble(conf->blist_devnode, str, ORIGIN_DEFAULT))
 		return 1;
 
+	str = STRDUP("^nvme.*");
+	if (!str)
+		return 1;
+	if (store_ble(conf->blist_devnode, str, ORIGIN_DEFAULT))
+		return 1;
+
 	str = STRDUP("(ID_SCSI_VPD|ID_WWN)");
 	if (!str)
 		return 1;
diff --git a/multipath.conf.defaults b/multipath.conf.defaults
index e761902..12fb3f0 100644
--- a/multipath.conf.defaults
+++ b/multipath.conf.defaults
@@ -31,6 +31,7 @@
 #	devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
 #	devnode "^hd[a-z]"
 #	devnode "^dcssblk[0-9]*"
+#	devnode "^nvme.*"
 #	device {
 #		vendor "DGC"
 #		product "LUNZ"
-- 
1.8.3.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]