test/bdev: Convert setup_pmem_conf() to RPC calls

Change-Id: I48217a4e855fd903a378e188e70b41efbe10db5d
Signed-off-by: Michal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1021
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
Michal Berger 2020-02-26 12:38:24 +01:00 committed by Tomasz Zawadzki
parent 102731bd40
commit 9176ac1efa

View File

@ -133,8 +133,7 @@ function setup_pmem_conf() {
if hash pmempool; then
rm -f /tmp/spdk-pmem-pool
pmempool create blk --size=32M 512 /tmp/spdk-pmem-pool
echo "[Pmem]" >> $conf_file
echo " Blk /tmp/spdk-pmem-pool Pmem0" >> $conf_file
"$rpc_py" bdev_pmem_create -n Pmem0 "/tmp/spdk-pmem-pool"
else
return 1
fi
@ -350,7 +349,7 @@ case "$test_type" in
crypto_qat )
start_spdk_tgt; setup_crypto_qat_conf;;
pmem )
setup_pmem_conf;;
start_spdk_tgt; setup_pmem_conf;;
rbd )
setup_rbd_conf;;
* )