[PATCH blktests 08/10] common/nvme: handle option '--concat' for _nvme_connect_subsys

Shin'ichiro Kawasaki shinichiro.kawasaki at wdc.com
Wed Apr 2 00:09:04 PDT 2025


From: Hannes Reinecke <hare at suse.de>

To start secure concatenation the option '--concat' has to be passed
to the 'nvme connect' command.

Signed-off-by: Hannes Reinecke <hare at suse.de>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki at wdc.com>
---
 common/nvme | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/common/nvme b/common/nvme
index 47bcdc9..402db18 100644
--- a/common/nvme
+++ b/common/nvme
@@ -275,6 +275,7 @@ _nvme_connect_subsys() {
 	local hdr_digest=false
 	local data_digest=false
 	local tls=false
+	local concat=false
 	local port
 	local i
 	local -a ARGS
@@ -345,6 +346,10 @@ _nvme_connect_subsys() {
 				tls=true
 				shift 1
 				;;
+			--concat)
+				concat=true
+				shift 1
+				;;
 			*)
 				echo "WARNING: unknown argument: $1"
 				shift
@@ -405,6 +410,9 @@ _nvme_connect_subsys() {
 	if [[ ${tls} = true ]]; then
 		ARGS+=(--tls)
 	fi
+	if [[ ${concat} = true ]]; then
+		ARGS+=(--concat)
+	fi
 	ARGS+=(-o json)
 	connect=$(nvme connect "${ARGS[@]}" 2> /dev/null)
 
-- 
2.49.0




More information about the Linux-nvme mailing list