test: Create malloc bdev dynamically for nvmf test cases.
Change-Id: I64ec6eb16ff8480ce95fbd2c07d479c4d05965e9 Signed-off-by: Cunyin Chang <cunyin.chang@intel.com>
This commit is contained in:
parent
0482640657
commit
706bace35a
@ -5,6 +5,9 @@ rootdir=$(readlink -f $testdir/../../..)
|
|||||||
source $rootdir/scripts/autotest_common.sh
|
source $rootdir/scripts/autotest_common.sh
|
||||||
source $rootdir/test/nvmf/common.sh
|
source $rootdir/test/nvmf/common.sh
|
||||||
|
|
||||||
|
MALLOC_BDEV_SIZE=64
|
||||||
|
MALLOC_BLOCK_SIZE=512
|
||||||
|
|
||||||
rpc_py="python $rootdir/scripts/rpc.py"
|
rpc_py="python $rootdir/scripts/rpc.py"
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
@ -29,6 +32,9 @@ trap "killprocess $nvmfpid; exit 1" SIGINT SIGTERM EXIT
|
|||||||
|
|
||||||
waitforlisten $nvmfpid ${RPC_PORT}
|
waitforlisten $nvmfpid ${RPC_PORT}
|
||||||
|
|
||||||
|
$rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE
|
||||||
|
$rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE
|
||||||
|
|
||||||
modprobe -v nvme-rdma
|
modprobe -v nvme-rdma
|
||||||
|
|
||||||
if [ -e "/dev/nvme-fabrics" ]; then
|
if [ -e "/dev/nvme-fabrics" ]; then
|
||||||
|
@ -5,6 +5,9 @@ rootdir=$(readlink -f $testdir/../../..)
|
|||||||
source $rootdir/scripts/autotest_common.sh
|
source $rootdir/scripts/autotest_common.sh
|
||||||
source $rootdir/test/nvmf/common.sh
|
source $rootdir/test/nvmf/common.sh
|
||||||
|
|
||||||
|
MALLOC_BDEV_SIZE=64
|
||||||
|
MALLOC_BLOCK_SIZE=512
|
||||||
|
|
||||||
rpc_py="python $rootdir/scripts/rpc.py"
|
rpc_py="python $rootdir/scripts/rpc.py"
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
@ -24,6 +27,9 @@ trap "killprocess $nvmfpid; exit 1" SIGINT SIGTERM EXIT
|
|||||||
|
|
||||||
waitforlisten $nvmfpid ${RPC_PORT}
|
waitforlisten $nvmfpid ${RPC_PORT}
|
||||||
|
|
||||||
|
$rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE
|
||||||
|
$rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE
|
||||||
|
|
||||||
modprobe -v nvme-rdma
|
modprobe -v nvme-rdma
|
||||||
|
|
||||||
if [ -e "/dev/nvme-fabrics" ]; then
|
if [ -e "/dev/nvme-fabrics" ]; then
|
||||||
|
@ -5,6 +5,9 @@ rootdir=$(readlink -f $testdir/../../..)
|
|||||||
source $rootdir/scripts/autotest_common.sh
|
source $rootdir/scripts/autotest_common.sh
|
||||||
source $rootdir/test/nvmf/common.sh
|
source $rootdir/test/nvmf/common.sh
|
||||||
|
|
||||||
|
MALLOC_BDEV_SIZE=64
|
||||||
|
MALLOC_BLOCK_SIZE=512
|
||||||
|
|
||||||
rpc_py="python $rootdir/scripts/rpc.py"
|
rpc_py="python $rootdir/scripts/rpc.py"
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
@ -24,6 +27,9 @@ trap "killprocess $nvmfpid; exit 1" SIGINT SIGTERM EXIT
|
|||||||
|
|
||||||
waitforlisten $nvmfpid ${RPC_PORT}
|
waitforlisten $nvmfpid ${RPC_PORT}
|
||||||
|
|
||||||
|
$rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE
|
||||||
|
$rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE
|
||||||
|
|
||||||
modprobe -v nvme-rdma
|
modprobe -v nvme-rdma
|
||||||
|
|
||||||
if [ -e "/dev/nvme-fabrics" ]; then
|
if [ -e "/dev/nvme-fabrics" ]; then
|
||||||
|
@ -5,6 +5,9 @@ rootdir=$(readlink -f $testdir/../../..)
|
|||||||
source $rootdir/scripts/autotest_common.sh
|
source $rootdir/scripts/autotest_common.sh
|
||||||
source $rootdir/test/nvmf/common.sh
|
source $rootdir/test/nvmf/common.sh
|
||||||
|
|
||||||
|
MALLOC_BDEV_SIZE=64
|
||||||
|
MALLOC_BLOCK_SIZE=512
|
||||||
|
|
||||||
rpc_py="python $rootdir/scripts/rpc.py"
|
rpc_py="python $rootdir/scripts/rpc.py"
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
@ -23,6 +26,9 @@ trap "killprocess $nvmfpid; exit 1" SIGINT SIGTERM EXIT
|
|||||||
|
|
||||||
waitforlisten $nvmfpid ${RPC_PORT}
|
waitforlisten $nvmfpid ${RPC_PORT}
|
||||||
|
|
||||||
|
$rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE
|
||||||
|
$rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE
|
||||||
|
|
||||||
modprobe -v nvme-rdma
|
modprobe -v nvme-rdma
|
||||||
|
|
||||||
if [ -e "/dev/nvme-fabrics" ]; then
|
if [ -e "/dev/nvme-fabrics" ]; then
|
||||||
|
@ -5,9 +5,5 @@
|
|||||||
[Rpc]
|
[Rpc]
|
||||||
Enable Yes
|
Enable Yes
|
||||||
|
|
||||||
[Malloc]
|
|
||||||
NumberOfLuns 2
|
|
||||||
LunSizeInMB 64
|
|
||||||
|
|
||||||
[Nvmf]
|
[Nvmf]
|
||||||
MaxQueuesPerSession 4
|
MaxQueuesPerSession 4
|
||||||
|
Loading…
Reference in New Issue
Block a user