Commit 3e9ddce6 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

test/nvmf: add virtual subsystem to nvme-cli test



Change-Id: I4880e227b90949a26670900baed6f6bcf836a66e
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 6ac8caf0
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -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