3 testdir
=$
(readlink
-f $
(dirname $0))
4 rootdir
=$
(readlink
-f $testdir/..
/..
/..
)
5 source $rootdir/test
/common
/autotest_common.sh
6 source $rootdir/test
/nvmf
/common.sh
11 rpc_py
="$rootdir/scripts/rpc.py"
15 # connect disconnect is geared towards ensuring that we are properly freeing resources after disconnecting qpairs.
16 timing_enter connect_disconnect
21 $rpc_py nvmf_create_transport
-t $TEST_TRANSPORT -u 8192 -c 0
23 bdev
="$($rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE)"
25 $rpc_py nvmf_subsystem_create nqn
.2016-06.io.spdk
:cnode1
-a -s SPDK00000000000001
26 $rpc_py nvmf_subsystem_add_ns nqn
.2016-06.io.spdk
:cnode1
$bdev
27 $rpc_py nvmf_subsystem_add_listener nqn
.2016-06.io.spdk
:cnode1
-t $TEST_TRANSPORT -a $NVMF_FIRST_TARGET_IP -s $NVMF_PORT
29 if [ $RUN_NIGHTLY -eq 1 ]; then
36 for i
in $
(seq 1 $num_iterations); do
37 nvme connect
-t $TEST_TRANSPORT -n "nqn.2016-06.io.spdk:cnode1" -a "$NVMF_FIRST_TARGET_IP" -s "$NVMF_PORT"
39 nvme disconnect
-n "nqn.2016-06.io.spdk:cnode1"
40 waitforblk_disconnect
"nvme0n1"
44 trap - SIGINT SIGTERM EXIT
48 timing_exit connect_disconnect