test/lvol: test resizing lvols using their names
We did not test it so far. Change-Id: I0769c31691535b5d8f9c49e07899f035208efebb Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/462188 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Maciej Szwed <maciej.szwed@intel.com>
This commit is contained in:
parent
9d044f25f1
commit
cf628b09d0
@ -32,10 +32,10 @@ function test_resize_lvol() {
|
||||
lvol=$(rpc_cmd bdev_get_bdevs -b "$lvol_uuid")
|
||||
[ "$(jq -r '.[0].num_blocks' <<< "$lvol")" = "$(( lvol_size / MALLOC_BS ))" ]
|
||||
|
||||
# resize the lvol to four times its original size
|
||||
# resize the lvol to four times its original size, use its name instead of uuid
|
||||
lvol_size_mb=$(( lvol_size_mb * 2 ))
|
||||
lvol_size=$(( lvol_size_mb * 1024 * 1024 ))
|
||||
rpc_cmd bdev_lvol_resize "$lvol_uuid" "$lvol_size_mb"
|
||||
rpc_cmd bdev_lvol_resize lvs_test/lvol_test "$lvol_size_mb"
|
||||
lvol=$(rpc_cmd bdev_get_bdevs -b "$lvol_uuid")
|
||||
[ "$(jq -r '.[0].num_blocks' <<< "$lvol")" = "$(( lvol_size / MALLOC_BS ))" ]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user