public inbox for linux-nvme@lists.infradead.org
 help / color / mirror / Atom feed
From: alan.adamson@oracle.com
To: linux-nvme@lists.infradead.org
Subject: nvme in-band authentication blktests - nvme/043
Date: Thu, 29 Jun 2023 12:24:18 -0700	[thread overview]
Message-ID: <eedfab08-e50c-0a51-5dd3-2861dcc02b4d@oracle.com> (raw)

I'm playing around with in-band authentication and using blktests to see 
how to setup it up and use it.  In test nvme/043, a valid hostkey is 
never initialized and a NULL is being used to setup the target and to 
connect.  Is this expected?  The test with the NULL hostkey passes.  I 
updated the test to use a valid key and it also passes.


diff --git a/tests/nvme/043 b/tests/nvme/043
index a030884..d5e0d4b 100755
--- a/tests/nvme/043
+++ b/tests/nvme/043
@@ -40,6 +40,8 @@ test() {
         fi
         hostnqn="nqn.2014-08.org.nvmexpress:uuid:${hostid}"

+       hostkey="$(nvme gen-dhchap-key -n ${subsys_name} 2> /dev/null)"
+
         _setup_nvmet

         truncate -s "${nvme_img_size}" "${file_path}"


Alan Adamson



             reply	other threads:[~2023-06-29 19:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-29 19:24 alan.adamson [this message]
2023-07-03  6:46 ` nvme in-band authentication blktests - nvme/043 Shinichiro Kawasaki
2023-07-03  9:06   ` Hannes Reinecke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=eedfab08-e50c-0a51-5dd3-2861dcc02b4d@oracle.com \
    --to=alan.adamson@oracle.com \
    --cc=linux-nvme@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox