Commit 30c08caa authored by Artur Paszkiewicz's avatar Artur Paszkiewicz Committed by Jim Harris
Browse files

test/raid: always create pt bdevs in rebuild test



It doesn't hurt when superblock is not used and the code is a little
simpler this way.

Signed-off-by: default avatarArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Change-Id: Ic65b4f0ba4d6bd3aac531d522c35573ef0a01399
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22499


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
parent e2f90f3c
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -604,12 +604,8 @@ function raid_rebuild_test() {

	# Create base bdevs
	for bdev in "${base_bdevs[@]}"; do
		if [ $superblock = true ]; then
		$rpc_py bdev_malloc_create 32 $base_blocklen $base_malloc_params -b ${bdev}_malloc
		$rpc_py bdev_passthru_create -b ${bdev}_malloc -p $bdev
		else
			$rpc_py bdev_malloc_create 32 $base_blocklen $base_malloc_params -b $bdev
		fi
	done

	# Create spare bdev