Spdk/test
Tomasz Zawadzki ea3a17fb55 blob: disallow bs load on device with unsupported block length
Blobstore supports only block lengths that are less than
SPDK_BS_PAGE_SIZE or when multiplication of block len
results in SPDK_BS_PAGE_SIZE.

This was checked only on spdk_bs_init(), but not spdk_bs_load().

When not checked, it caused issues with lvol store tasting.
During tasting, there is an attempt to perform spdk_bs_load()
on a given device.
It was possible to hit asserts in blobstore by creating
malloc with block size 8192.

Change-Id: I30b62bebad405b581eb2158925884adc616d9b92
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.gerrithub.io/404537
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
2018-03-27 12:21:21 -04:00
..
app test: move histogram_perf under the app directory 2018-03-23 19:45:09 -04:00
bdev test: move the bdev directory up one level 2018-03-23 19:45:09 -04:00
blobfs test: move test/lib/blobfs under test/blobfs 2018-03-23 19:45:09 -04:00
blobstore autotest_common.sh: move to test/common 2018-02-27 20:37:27 -05:00
common test: move config directory under common directory 2018-03-23 19:45:09 -04:00
cpp_headers build: add @: to remaining 'all' targets 2018-02-14 17:38:25 -05:00
ioat test: move lib/ioat up one directory 2018-03-27 00:46:52 -04:00
iscsi_tgt autotest: update iscsi_filesystem_test 2018-03-27 03:21:15 -04:00
lib test: move lib/ioat up one directory 2018-03-27 00:46:52 -04:00
lvol pep8: fix E305 (2 blank lines after functions) 2018-03-27 00:59:37 -04:00
nvme test: move lib/nvme up one directory 2018-03-27 00:46:52 -04:00
nvmf test: move lib/nvme up one directory 2018-03-27 00:46:52 -04:00
pmem autotest: add test completion tracking 2018-03-01 17:13:41 -05:00
unit blob: disallow bs load on device with unsupported block length 2018-03-27 12:21:21 -04:00
vhost pep8: fix E305 (2 blank lines after functions) 2018-03-27 00:59:37 -04:00
Makefile test: move lib/nvme up one directory 2018-03-27 00:46:52 -04:00
spdk_cunit.h scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00