3 testdir
=$
(readlink
-f $
(dirname $0))
4 rootdir
=$
(readlink
-f $testdir/..
/..
/..
)
5 source $rootdir/scripts
/autotest_common.sh
6 source $rootdir/test
/nvmf
/common.sh
8 rpc_py
="python $rootdir/scripts/rpc.py"
12 if ! rdma_nic_available
; then
13 echo "no NIC for nvmf test"
19 # Start up the NVMf target in another process
20 $rootdir/app
/nvmf_tgt
/nvmf_tgt
-c $testdir/..
/nvmf.conf
-m 0x2 -p 1 -s 512 &
23 trap "killprocess $nvmfpid; exit 1" SIGINT SIGTERM EXIT
25 waitforlisten
$nvmfpid ${RPC_PORT}
27 $rpc_py construct_nvmf_subsystem Direct nqn
.2016-06.io.spdk
:cnode1
'transport:RDMA traddr:192.168.100.8 trsvcid:4420' '' -p "*"
29 $rootdir/test
/lib
/nvme
/aer
/aer
-r "\
32 traddr:$NVMF_FIRST_TARGET_IP \
34 subnqn:nqn.2014-08.org.nvmexpress.discovery"
36 $rpc_py delete_nvmf_subsystem nqn
.2016-06.io.spdk
:cnode1
38 trap - SIGINT SIGTERM EXIT