Skip to content

Commit f8a0bd1

Browse files
committed
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]>
1 parent 7a38fdd commit f8a0bd1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

common/nvme

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ _nvme_connect_subsys() {
276276
local hdr_digest=false
277277
local data_digest=false
278278
local tls=false
279+
local concat=false
279280
local port
280281
local i
281282
local -a ARGS
@@ -346,6 +347,10 @@ _nvme_connect_subsys() {
346347
tls=true
347348
shift 1
348349
;;
350+
--concat)
351+
concat=true
352+
shift 1
353+
;;
349354
*)
350355
echo "WARNING: unknown argument: $1"
351356
shift
@@ -406,6 +411,9 @@ _nvme_connect_subsys() {
406411
if [[ ${tls} = true ]]; then
407412
ARGS+=(--tls)
408413
fi
414+
if [[ ${concat} = true ]]; then
415+
ARGS+=(--concat)
416+
fi
409417
ARGS+=(-o json)
410418
connect=$(nvme connect "${ARGS[@]}" 2> /dev/null)
411419

0 commit comments

Comments
 (0)