From 438ace4677c9e3fe43e6110de64779d3202ad69d Mon Sep 17 00:00:00 2001 From: Diwakar Sharma Date: Thu, 19 Dec 2024 11:05:18 +0000 Subject: [PATCH] fix(nvmf/uri): use nvmf:// scheme for tcp Signed-off-by: Diwakar Sharma --- io-engine/src/subsys/nvmf/transport.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/io-engine/src/subsys/nvmf/transport.rs b/io-engine/src/subsys/nvmf/transport.rs index 3e7a1657e..554f744f9 100644 --- a/io-engine/src/subsys/nvmf/transport.rs +++ b/io-engine/src/subsys/nvmf/transport.rs @@ -145,13 +145,13 @@ impl Display for TransportId { // trstring for uri scheme to explicitly indicate the tcp support // also by default when there is rdma available. let trstring = match self.0.trstring.as_str() { - "RDMA" => "rdma+tcp".to_string(), - _else => _else.to_lowercase(), + "RDMA" => "+rdma+tcp".to_string(), + _else => "".to_string(), }; write!( f, - "nvmf+{}://{}:{}", + "nvmf{}://{}:{}", trstring, self.0.traddr.as_str(), self.0.trsvcid.as_str()