98397d9ef7
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>