test/ftl: add cases line to cover RPC bdev_ftl_unload
Change-Id: I34074846d812d9bdf47af25f1275978c3508084b Signed-off-by: Hailiang Wang <hailiangx.e.wang@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15696 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
41c16a6dab
commit
1b566ac7d9
@ -77,6 +77,7 @@ md5sum $testdir/testfile > $testdir/testfile.md5
|
||||
$spdk_dd -m 0x2 -r /var/tmp/spdk_dd.sock --if=$testdir/testfile --of=/dev/nbd0 --bs=$block_size --count=$data_size --oflag=direct
|
||||
sync /dev/nbd0
|
||||
$rpc_py nbd_stop_disk /dev/nbd0
|
||||
$rpc_py bdev_ftl_unload -b ftl0
|
||||
|
||||
# Force kill bdev service (dirty shutdown) and start it again
|
||||
kill -9 $svcpid
|
||||
|
@ -70,6 +70,8 @@ waitforbdev ftl0
|
||||
echo ']}'
|
||||
) > $FTL_JSON_CONF
|
||||
|
||||
$rpc_py bdev_ftl_unload -b ftl0
|
||||
|
||||
killprocess $svcpid
|
||||
trap - SIGINT SIGTERM EXIT
|
||||
|
||||
|
@ -62,6 +62,7 @@ $rpc_py -t $timeout $ftl_construct_args
|
||||
$rpc_py save_subsystem_config -n bdev
|
||||
echo ']}'
|
||||
) > $testdir/config/ftl.json
|
||||
$rpc_py bdev_ftl_unload -b ftl0
|
||||
killprocess $svcpid
|
||||
|
||||
# Generate random data and calculate checksum
|
||||
|
@ -58,6 +58,7 @@ waitforbdev ftl0
|
||||
|
||||
bdev_info=$($rpc_py bdev_get_bdevs -b ftl0)
|
||||
nb=$(jq ".[] .num_blocks" <<< "$bdev_info")
|
||||
$rpc_py bdev_ftl_unload -b ftl0
|
||||
|
||||
killprocess $svcpid
|
||||
|
||||
|
@ -53,6 +53,7 @@ waitforbdev ftl0
|
||||
$rpc_py save_subsystem_config -n bdev
|
||||
echo ']}'
|
||||
) > $FTL_JSON_CONF
|
||||
$rpc_py bdev_ftl_unload -b ftl0
|
||||
|
||||
killprocess $svcpid
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user