| f91ba919 | 20-Jan-2023 |
Shuhei Matsumoto <smatsumoto@nvidia.com> |
test/bdevio: Replace spdk_bdev_get_by_name() by spdk_bdev_open_ext()
spdk_bdev_get_by_name() is also not safe and bdevio_construct_target() calls spdk_bdev_open_ext(). Hence, by adding a extra abstr
test/bdevio: Replace spdk_bdev_get_by_name() by spdk_bdev_open_ext()
spdk_bdev_get_by_name() is also not safe and bdevio_construct_target() calls spdk_bdev_open_ext(). Hence, by adding a extra abstraction, remove spdk_bdev_get_by_name() call.
Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I6f4cbe82a02ff1affb215c7e2d8681d76d1afb96 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16535 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
show more ...
|
| 3fc593b6 | 20-Sep-2022 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
test/bdevio: adjust writes to write_unit_size
Make writes larger when necessary to comply with the bdev's write unit size requirement.
Change-Id: Ief60d369bb3efb5de083c5951672e20f2dd9e0af Signed-of
test/bdevio: adjust writes to write_unit_size
Make writes larger when necessary to comply with the bdev's write unit size requirement.
Change-Id: Ief60d369bb3efb5de083c5951672e20f2dd9e0af Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14715 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
show more ...
|
| a6e02246 | 19-Apr-2022 |
Jonas Pfefferle <pepperjo@japf.ch> |
test/bdevio: fix bytes vs blocks => early return of test
blockdev_compare_and_write and blockdev_write_read check if data_length is multiple of block size and silently succeed if it is not. There ar
test/bdevio: fix bytes vs blocks => early return of test
blockdev_compare_and_write and blockdev_write_read check if data_length is multiple of block size and silently succeed if it is not. There are multiple test that test e.g. invalid size but the actual bdev API is never called and tested because of the early return. The intend of this behavior presumably was to allow to run test like e.g. the 512bytes rw test on a 4K formatted namespace without failing. Instead of silently succeeding which introduces the issues described this patch changes all sizes to be multiple of block size and removes the test for valid block size to let the return value of the bdev API functions indicate failure like intended. All previous 4k tests are now performing io of 1 block size. Previous 512byte tests now perform 8 * block size (to have 4k test size for 512byte formatted namespaces). Write zeroes test are now using the write zeroes buffer size instead of a hardcoded value and align accordingly to block size io. Furthermore, no cmp&write test is ever executed because data_length is set to 1 trying to indicate 1 block but it is tested against valid block bytes and silently succeeded. Also write and read helpers in cmp&write test expect bytes not blocks. For consistency use bytes in the test and only convert to blocks when calling the cmp&write blocks API.
Signed-off-by: Jonas Pfefferle <pepperjo@japf.ch> Change-Id: I662094c2bcd08c0e9dc5573177a2e7a0edd275ce Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12382 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
show more ...
|
| 00647138 | 25-Apr-2022 |
Jim Harris <james.r.harris@intel.com> |
bdev: more ZERO_BUFFER_SIZE to bdev_internal.h
The bdevio test app has some test cases verifying that write zeroes commands are handled correctly, but using knowledge of the ZERO_BUFFER_SIZE that th
bdev: more ZERO_BUFFER_SIZE to bdev_internal.h
The bdevio test app has some test cases verifying that write zeroes commands are handled correctly, but using knowledge of the ZERO_BUFFER_SIZE that the bdev library uses for splitting larger write zeroes commands. Instead of hardcoding that 1MB value in bdevio.c, have bdevio.c use ZERO_BUFFER_SIZE directly instead. But this requires moving ZERO_BUFFER_SIZE into bdev_internal.h and having bdevio.c include that file.
We do this instead of putting ZERO_BUFFER_SIZE in the public API because we don't want users to make any kind of dependencies on this value.
While here, also rename the tests that are using this value, so that the test names don't include any reference to the specific size of this bdev-internal zero buffer size.
Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Ia29d92a706cb1f86b4c29374dc2a9beccf679208 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12383 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
show more ...
|
| 5b750ea5 | 15-Feb-2022 |
Ben Walker <benjamin.walker@intel.com> |
test/bdevio: Check for success when resetting an NVMe-oF device
This test was written before reset was supported on NVMe-oF devices. It should be working now, so go ahead and test it.
Signed-off-by
test/bdevio: Check for success when resetting an NVMe-oF device
This test was written before reset was supported on NVMe-oF devices. It should be working now, so go ahead and test it.
Signed-off-by: Ben Walker <benjamin.walker@intel.com> Change-Id: Ifce04542c4a6fdef1a33d094a5ea8d504dee6f24 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11595 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Michael Haeuptle <michaelhaeuptle@gmail.com>
show more ...
|