dm-multipath: blacklist NVMe devices
PATCH 1/1 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 <[email protected]>
--- libmultipath/blacklist.c | 6 ++++++ multipath.conf.defaults | 1 + 2 files changed, 7 insertions(+)
libmultipath/blacklist.c +6 -0
@@ -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 ;
multipath.conf.defaults +1 -0
@@ -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"
Signature · 1 line
1.8.3.1
Christophe Varoqui
AppliedApplied.
Thanks.
Quoted 42 lines · Vaughan Cao
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 <[email protected]>--- libmultipath/blacklist.c | 6 ++++++ multipath.conf.defaults | 1 + 2 files changed, 7 insertions(+)libmultipath/blacklist.c +6
-0@@ -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 ;multipath.conf.defaults +1
-1@@ -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