From: Hannes Reinecke <hare@xxxxxxx> To start secure concatenation the option '--concat' has to be passed to the 'nvme connect' command. Signed-off-by: Hannes Reinecke <hare@xxxxxxx> Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx> --- 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