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: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/460728 Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
9bba21c969
commit
f0fd8d4b48
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user