ut/bdev: fix lack of spdk_bdev_opts size
Patch: (d3d077cc) bdev: Solve the ABI compatibility issue related with spdk_bdev_opts didn't include changes from day prior that added new code in bdev_ut: (9697d84) test: add unit test for split IO This patch fills in the gap in the UT. Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: Ifc6c27d740b45e8135061d0ae86965afaafbe1b2 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5640 Community-CI: Broadcom CI Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
b5ba9f4d94
commit
2d36698d1d
@ -1733,6 +1733,7 @@ bdev_io_max_size_and_segment_split_test(void)
|
||||
uint64_t i;
|
||||
int rc;
|
||||
|
||||
bdev_opts.opts_size = sizeof(bdev_opts);
|
||||
rc = spdk_bdev_set_opts(&bdev_opts);
|
||||
CU_ASSERT(rc == 0);
|
||||
spdk_bdev_initialize(bdev_init_cb, NULL);
|
||||
@ -2279,6 +2280,7 @@ bdev_io_mix_split_test(void)
|
||||
uint64_t i;
|
||||
int rc;
|
||||
|
||||
bdev_opts.opts_size = sizeof(bdev_opts);
|
||||
rc = spdk_bdev_set_opts(&bdev_opts);
|
||||
CU_ASSERT(rc == 0);
|
||||
spdk_bdev_initialize(bdev_init_cb, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user