numam-spdk/test
Jim Harris 7c56c393ba bit_array: return UINT32_MAX if no cleared bits found
spdk_bit_array_find_first_set() returns UINT32_MAX if no
set bits are found.  But spdk_bit_array_find_first_clear()
would return the size of the bit array instead in this case.
(Note: the comments say size of the bit array + 1 which was
incorrect)

So this patch makes spdk_bit_array_find_first_clear()
consistent with spdk_bit_array_find_first_set() and returns
UINT32_MAX if no cleared bit is found.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I44c1e674149f8c2e87122800d5db45a2851f0bef

Reviewed-on: https://review.gerrithub.io/428225
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Ziye Yang <optimistyzy@gmail.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
2018-10-08 17:03:33 +00:00
..
app make: simplify rdma dependency linking 2018-09-14 22:56:46 +00:00
bdev Check file permissions in the check_format script 2018-10-04 23:08:12 +00:00
blobfs scripts: use python3 in all scripts 2018-09-14 22:24:30 +00:00
blobstore blobstore: Add tests for bdev_blob_queue_io in blobstore 2018-09-18 16:38:49 +00:00
common Check file permissions in the check_format script 2018-10-04 23:08:12 +00:00
config_converter scripts: add config converter 2018-09-18 15:24:40 +00:00
cpp_headers build: add @: to remaining 'all' targets 2018-02-14 17:38:25 -05:00
env env_dpdk/memory: handle spdk_mem_map_notify_walk() failures 2018-10-05 21:01:27 +00:00
event test/event_perf: use less memory 2018-07-26 05:28:52 +00:00
ioat ioat: remove ioat kperf kernel driver test harness 2018-04-30 17:11:53 +00:00
iscsi_tgt test/iscsi: disable running_config test 2018-09-20 21:52:18 +00:00
json_config Check file permissions in the check_format script 2018-10-04 23:08:12 +00:00
lvol Check file permissions in the check_format script 2018-10-04 23:08:12 +00:00
nvme CONFIG: add missing CONFIG_ options 2018-10-04 21:31:42 +00:00
nvmf test/nvmf: Expand shutdown test 2018-10-04 22:59:57 +00:00
pmem Check file permissions in the check_format script 2018-10-04 23:08:12 +00:00
spdkcli test: fix the test error reported by the testpool 2018-10-08 05:30:49 +00:00
unit bit_array: return UINT32_MAX if no cleared bits found 2018-10-08 17:03:33 +00:00
vhost test/vhost: test vm booting from vhost controller 2018-10-04 23:27:40 +00:00
Makefile test: move lib/json up to test app directory 2018-03-29 00:31:24 -04:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00