From 3e9ddce6f32c4d035fcedaf2ee52b269b54baba5 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Fri, 26 Aug 2016 10:38:49 -0700 Subject: [PATCH] test/nvmf: add virtual subsystem to nvme-cli test Change-Id: I4880e227b90949a26670900baed6f6bcf836a66e Signed-off-by: Daniel Verkamp --- test/nvmf/nvme_cli/nvme_cli.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/test/nvmf/nvme_cli/nvme_cli.sh b/test/nvmf/nvme_cli/nvme_cli.sh index 9059c1431..17edbcd31 100755 --- a/test/nvmf/nvme_cli/nvme_cli.sh +++ b/test/nvmf/nvme_cli/nvme_cli.sh @@ -28,13 +28,21 @@ if [ -e "/dev/nvme-fabrics" ]; then fi nvme connect -t rdma -n "nqn.2016-06.io.spdk:cnode1" -a "$NVMF_FIRST_TARGET_IP" -s "$NVMF_PORT" +nvme connect -t rdma -n "nqn.2016-06.io.spdk:cnode2" -a "$NVMF_FIRST_TARGET_IP" -s "$NVMF_PORT" nvme list -nvme id-ctrl /dev/nvme0 -nvme id-ns /dev/nvme0n1 -nvme smart-log /dev/nvme0 + +for ctrl in /dev/nvme?; do + nvme id-ctrl $ctrl + nvme smart-log $ctrl +done + +for ns in /dev/nvme?n*; do + nvme id-ns $ns +done nvme disconnect -n "nqn.2016-06.io.spdk:cnode1" +nvme disconnect -n "nqn.2016-06.io.spdk:cnode2" trap - SIGINT SIGTERM EXIT