test/bdev: Convert setup_rbd_conf() to RPC calls
Change-Id: Icfbb571d1cd2a2539cd9026f1437c75450b77512 Signed-off-by: Michal Berger <michalx.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1022 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:
parent
9176ac1efa
commit
6b8f9a0f81
@ -1,11 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
if ! hash ceph &> /dev/null; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "[Ceph]"
|
|
||||||
echo " Ceph $RBD_POOL $RBD_NAME 512"
|
|
@ -144,7 +144,7 @@ function setup_rbd_conf() {
|
|||||||
rbd_setup 127.0.0.1
|
rbd_setup 127.0.0.1
|
||||||
timing_exit rbd_setup
|
timing_exit rbd_setup
|
||||||
|
|
||||||
$rootdir/scripts/gen_rbd.sh >> $conf_file
|
"$rpc_py" bdev_rbd_create -b Ceph0 rbd foo 512
|
||||||
}
|
}
|
||||||
|
|
||||||
function bdev_bounds() {
|
function bdev_bounds() {
|
||||||
@ -351,7 +351,7 @@ case "$test_type" in
|
|||||||
pmem )
|
pmem )
|
||||||
start_spdk_tgt; setup_pmem_conf;;
|
start_spdk_tgt; setup_pmem_conf;;
|
||||||
rbd )
|
rbd )
|
||||||
setup_rbd_conf;;
|
start_spdk_tgt; setup_rbd_conf;;
|
||||||
* )
|
* )
|
||||||
echo "invalid test name"
|
echo "invalid test name"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user