Skip to content

Commit

Permalink
nvme: handle option '--concat' for _nvme_connect_subsys
Browse files Browse the repository at this point in the history
To start secure concatenation the option '--concat' has to be passed
to the 'nvme connect' command.

Signed-off-by: Hannes Reinecke <hare@suse.de>
  • Loading branch information
hreinecke committed Jan 22, 2025
1 parent 42bb684 commit bc544f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions common/nvme
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,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
Expand Down Expand Up @@ -353,6 +354,10 @@ _nvme_connect_subsys() {
tls=true
shift 1
;;
--concat)
concat=true
shift 1
;;
*)
echo "WARNING: unknown argument: $1"
shift
Expand Down Expand Up @@ -413,6 +418,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)

Expand Down

0 comments on commit bc544f8

Please sign in to comment.