nvmf: Use nvme-cli to connect inside tests
Change-Id: I953a41a54e8eddcf07a8fa607c9a1e1a34e2b20c Signed-off-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
0606eaad1a
commit
a9f1988ed6
@ -28,7 +28,7 @@ if [ -e "/dev/nvme-fabrics" ]; then
|
||||
chmod a+rw /dev/nvme-fabrics
|
||||
fi
|
||||
|
||||
echo 'traddr='$NVMF_FIRST_TARGET_IP',transport=rdma,nr_io_queues=1,trsvcid='$NVMF_PORT',nqn=nqn.2016-06.io.spdk:cnode1' > /dev/nvme-fabrics
|
||||
nvme connect -t rdma -n "nqn.2016-06.io.spdk:cnode1" -a "$NVMF_FIRST_TARGET_IP" -s "$NVMF_PORT"
|
||||
|
||||
mkdir -p /mnt/device
|
||||
|
||||
|
@ -28,7 +28,7 @@ if [ -e "/dev/nvme-fabrics" ]; then
|
||||
chmod a+rw /dev/nvme-fabrics
|
||||
fi
|
||||
|
||||
echo 'traddr='$NVMF_FIRST_TARGET_IP',transport=rdma,nr_io_queues=1,trsvcid='$NVMF_PORT',nqn=nqn.2016-06.io.spdk:cnode1' > /dev/nvme-fabrics
|
||||
nvme connect -t rdma -n "nqn.2016-06.io.spdk:cnode1" -a "$NVMF_FIRST_TARGET_IP" -s "$NVMF_PORT"
|
||||
|
||||
$testdir/nvmf_fio.py 4096 1 write 1 verify
|
||||
$testdir/nvmf_fio.py 4096 1 randwrite 1 verify
|
||||
|
@ -27,7 +27,7 @@ if [ -e "/dev/nvme-fabrics" ]; then
|
||||
chmod a+rw /dev/nvme-fabrics
|
||||
fi
|
||||
|
||||
echo 'traddr='$NVMF_FIRST_TARGET_IP',transport=rdma,nr_io_queues=1,trsvcid='$NVMF_PORT',nqn=nqn.2016-06.io.spdk:cnode1' > /dev/nvme-fabrics
|
||||
nvme connect -t rdma -n "nqn.2016-06.io.spdk:cnode1" -a "$NVMF_FIRST_TARGET_IP" -s "$NVMF_PORT"
|
||||
|
||||
nvme list
|
||||
nvme id-ctrl /dev/nvme0
|
||||
|
Loading…
Reference in New Issue
Block a user