Spdk/examples
Mike Gerdts 8389b65ad4 blobcli: do not read from an zero-length blob
Not all blobs have data: an lvstore's super blob is a common
example. Perform a size check prior to trying to dump the blob's
contents.

Signed-off-by: Mike Gerdts <mgerdts@nvidia.com>
Change-Id: Ic5bc1b11cdda72a36c6a3f4b4de0fd6f1a2948c6
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11246
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: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2022-02-01 20:05:13 +00:00
..
accel examples/accel/perf: fix partial-free error before _init_thread 2022-01-05 09:23:12 +00:00
bdev examples/bdev: add missed spdk_env_fini() call when exiting 2022-01-10 18:36:14 +00:00
blob blobcli: do not read from an zero-length blob 2022-02-01 20:05:13 +00:00
idxd examples/idxd: Deal with queued tasks during drain 2022-01-26 08:12:44 +00:00
interrupt_tgt interrupt_tgt: Fix the interrupt mode usage issue. 2021-07-13 08:59:41 +00:00
ioat examples/ioat: add missed spdk_env_fini() call when exiting 2022-01-10 18:36:14 +00:00
nvme example/nvme_perf: Remove spdk_nvme_poll_group_remove() calls 2022-01-19 08:44:09 +00:00
nvmf examples/nvmf: add missed spdk_env_fini() when exiting 2022-01-10 18:36:14 +00:00
sock examples: update pollers to use the expected enum values 2021-11-03 23:12:25 +00:00
util Util: check the error case of NULL pointer 2021-06-08 08:26:12 +00:00
vmd examples/vmd: add missed spdk_env_fini() call when exiting 2022-01-10 18:36:14 +00:00
Makefile examples/idxd: Add the perf tool for idxd 2021-09-22 06:54:48 +00:00