Commit f0fd8d4b authored by Seth Howell's avatar Seth Howell Committed by Darek Stojaczyk
Browse files

test/iscsi_tgt: remove drive size dependency



As we add more virtual machines for testing, we may want to decrease the
average size of emulated NVMe drives to conserve disk space. The current
ext4test in iscsi presupposes that the provided NVMe drive is at least
20 GiB. This patch removes this assumption but keeps the cap of 10 GiB
per split for the test.

Note: the reason for the 10 GiB max is so that large drives don't take
an incredibly long time to create the filesystem for very large drives.

Change-Id: I4035905de42d07bdcef795f39b0ccf4cb076c31f
Signed-off-by: default avatarSeth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/460728


Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarDarek Stojaczyk <dariusz.stojaczyk@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 9bba21c9
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -71,7 +71,12 @@ $rpc_py delete_target_node $node_base:Target0
echo "Error injection test done"

if [ -z "$NO_NVME" ]; then
	$rpc_py construct_split_vbdev Nvme0n1 2 -s 10000
	bdev_size=$(get_bdev_size Nvme0n1)
	split_size=$((bdev_size/2))
	if [ $split_size -gt 10000 ]; then
		split_size=10000
	fi
	$rpc_py construct_split_vbdev Nvme0n1 2 -s $split_size
	$rpc_py construct_target_node Target1 Target1_alias Nvme0n1p0:0 1:2 64 -d
fi