test/lvol: fix error in thin_provisioning test

thin_provisioning test throws error "fio: failed parsing rw=-62910464"

Signed-off-by: Richael Zhuang <richael.zhuang@arm.com>
Change-Id: I0b8e425b6871eea5a650bd339c947b9bdafa6d5d
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1914
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
Richael Zhuang 2020-04-17 18:43:51 +08:00 committed by Tomasz Zawadzki
parent 15a415461c
commit 6f0bb206e6

View File

@ -205,8 +205,8 @@ function test_thin_overprovisioning() {
# Fill rest of second bdev
# Check that error message occured while filling second bdev with data
offset=$fill_size
fill_size_rest=$(( size - fill_size ))
run_fio_test /dev/nbd1 0 "$offset" "$fill_size_rest" "write" "0xcc" && false
fill_size_rest=$(( lvol_size - fill_size ))
run_fio_test /dev/nbd1 "$offset" "$fill_size_rest" "write" "0xcc" && false
# Check if data on first disk stayed unchanged
run_fio_test /dev/nbd0 0 $fill_size "read" "0xcc"