1#!/usr/bin/env bash 2# SPDX-License-Identifier: BSD-3-Clause 3# Copyright (C) 2019 Intel Corporation 4# All rights reserved. 5# 6testdir=$(readlink -f $(dirname $0)) 7rootdir=$(readlink -f $testdir/../../..) 8source $rootdir/test/common/autotest_common.sh 9source $rootdir/test/nvmf/common.sh 10 11MALLOC_BDEV_SIZE=64 12MALLOC_BLOCK_SIZE=512 13 14nvmftestinit 15# Don't use cores 0 - 2 to avoid overlap with bdevio. 16nvmfappstart -m 0x78 17 18$rpc_py nvmf_create_transport $NVMF_TRANSPORT_OPTS -u 8192 19$rpc_py bdev_malloc_create $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE -b Malloc0 20$rpc_py nvmf_create_subsystem nqn.2016-06.io.spdk:cnode1 -a -s SPDK00000000000001 21$rpc_py nvmf_subsystem_add_ns nqn.2016-06.io.spdk:cnode1 Malloc0 22$rpc_py nvmf_subsystem_add_listener nqn.2016-06.io.spdk:cnode1 -t $TEST_TRANSPORT -a $NVMF_FIRST_TARGET_IP -s $NVMF_PORT 23 24$rootdir/test/bdev/bdevio/bdevio --json <(gen_nvmf_target_json) 25 26$rpc_py nvmf_delete_subsystem nqn.2016-06.io.spdk:cnode1 27 28trap - SIGINT SIGTERM EXIT 29 30nvmftestfini 31