Commit 6b8f9a0f authored by Michal Berger's avatar Michal Berger Committed by Tomasz Zawadzki
Browse files

test/bdev: Convert setup_rbd_conf() to RPC calls

parent 9176ac1e
Loading
Loading
Loading
Loading

scripts/gen_rbd.sh

deleted100755 → 0
+0 −11
Original line number Diff line number Diff line
#!/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"
+2 −2
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ function setup_rbd_conf() {
	rbd_setup 127.0.0.1
	timing_exit rbd_setup

	$rootdir/scripts/gen_rbd.sh >> $conf_file
	"$rpc_py" bdev_rbd_create -b Ceph0 rbd foo 512
}

function bdev_bounds() {
@@ -351,7 +351,7 @@ case "$test_type" in
	pmem )
		start_spdk_tgt; setup_pmem_conf;;
	rbd )
		setup_rbd_conf;;
		start_spdk_tgt; setup_rbd_conf;;
	* )
		echo "invalid test name"
		exit 1