If the block size cannot be determined, just return 0 rather than assuming 512. This will allow the caller to tell whether the block size was actually successfully retrieved. Change-Id: If8a2b8ce498ba6de18238baedb62c8972cb32a74 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/373671 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
bit_array.c | ||
crc32_ieee.c | ||
crc32.c | ||
crc32c.c | ||
fd.c | ||
io_channel.c | ||
Makefile | ||
string.c |