diff --git a/test/iscsi_tgt/pmem/iscsi_pmem.sh b/test/iscsi_tgt/pmem/iscsi_pmem.sh index 5765bedfea..66c3de7385 100755 --- a/test/iscsi_tgt/pmem/iscsi_pmem.sh +++ b/test/iscsi_tgt/pmem/iscsi_pmem.sh @@ -36,7 +36,7 @@ for i in $(seq 1 $TGT_NR); do luns="" for j in $(seq 1 $PMEM_PER_TGT); do - $rpc_py create_pmem_pool /tmp/pool_file${i}_${j} $PMEM_SIZE $PMEM_BLOCK_SIZE + $rpc_py bdev_pmem_create_pool /tmp/pool_file${i}_${j} $PMEM_SIZE $PMEM_BLOCK_SIZE bdevs_name="$($rpc_py bdev_pmem_create -n pmem${i}_${j} /tmp/pool_file${i}_${j})" PMEM_BDEVS+="$bdevs_name " luns+="$bdevs_name:$((j - 1)) " diff --git a/test/json_config/json_config.sh b/test/json_config/json_config.sh index 3962134692..48e6d46ff2 100755 --- a/test/json_config/json_config.sh +++ b/test/json_config/json_config.sh @@ -242,7 +242,7 @@ function create_bdev_subsystem_config() { if [[ $SPDK_TEST_PMDK -eq 1 ]]; then pmem_pool_file=$(mktemp /tmp/pool_file1.XXXXX) rm -f $pmem_pool_file - tgt_rpc create_pmem_pool $pmem_pool_file 128 4096 + tgt_rpc bdev_pmem_create_pool $pmem_pool_file 128 4096 tgt_rpc bdev_pmem_create -n pmem1 $pmem_pool_file expected_notifications+=(bdev_register:pmem1) fi