Skip to content

Commit 755f984

Browse files
hreineckekawasaki
authored andcommitted
common/nvme: handle option '--concat' for _nvme_connect_subsys
To start secure concatenation the option '--concat' has to be passed to the 'nvme connect' command. Signed-off-by: Hannes Reinecke <[email protected]> Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
1 parent 3fc3554 commit 755f984

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

common/nvme

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ _nvme_connect_subsys() {
277277
local hdr_digest=false
278278
local data_digest=false
279279
local tls=false
280+
local concat=false
280281
local port
281282
local i
282283
local -a ARGS
@@ -347,6 +348,10 @@ _nvme_connect_subsys() {
347348
tls=true
348349
shift 1
349350
;;
351+
--concat)
352+
concat=true
353+
shift 1
354+
;;
350355
*)
351356
echo "WARNING: unknown argument: $1"
352357
shift
@@ -407,6 +412,9 @@ _nvme_connect_subsys() {
407412
if [[ ${tls} = true ]]; then
408413
ARGS+=(--tls)
409414
fi
415+
if [[ ${concat} = true ]]; then
416+
ARGS+=(--concat)
417+
fi
410418
ARGS+=(-o json)
411419
connect=$(nvme connect "${ARGS[@]}" 2> /dev/null)
412420

0 commit comments

Comments
 (0)