Spdk/examples
Sasha Kotchubievsky a8dd54792c perf: Fix integer overflow
perf application can't generate IO for NVMe namespace with
 more than 4G size.

 Example of error:
 "Attached to NVMe over Fabrics controller at 1.1.75.1:1023:
 nqn.2016-06.io.spdk.r-dcs75:rd0
 WARNING: controller SPDK bdev Controller (SPDK000DEADBEAF00   ) ns 1 has
 invalid ns size 0 / block size 4096 for I/O size 4096
 WARNING: Some requested NVMe devices were skipped
 No valid NVMe controllers or AIO devices found"

 ns_size variable is uint32_t, spdk_nvme_ns_get_size function
 returns uint64_t. Result can exceed the maximum size of
 uint32_t and ns_size remains 0.

 The issue introduced by commit: f2462909

Change-Id: Idc6dd8688d5d6268bda1a1d6b06a611643af6155
Signed-off-by: Sasha Kotchubievsky <sashakot@mellanox.com>
Reviewed-on: https://review.gerrithub.io/c/443996 (master)
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/447451
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2019-03-08 18:56:27 +00:00
..
bdev app/parse: add default return value for app parse function 2019-01-22 01:03:39 +00:00
blob examples/blob: Replace atoll by spdk_strtoll 2019-01-29 17:39:18 +00:00
ioat examples/ioat: Improve error check of input parsing by spdk_strtol 2019-01-29 00:10:57 +00:00
nvme perf: Fix integer overflow 2019-03-08 18:56:27 +00:00
sock examples/sock: Improve error check of input parsing by spdk_strtol 2019-01-29 17:39:18 +00:00
Makefile examples/sock/hello_sock: introduce sample application for libsock 2018-08-14 14:52:19 +00:00