+13
−13
Loading
This is first patch in series that will implement error code handling during disk uuid generation. spdk_uuid_generate_sha1() function can return error code other than 0 if SPDK_CONFIG_HAVE_UUID_GENERATE_SHA1 is not defined, and functions using it shall be prepared to handle such error codes appropriatelly. In this patch, the uuid generation functionality is moved up in the code, to group operations that can fail at beginning of the function. Change-Id: Ieaad45f9b5232bbd785ab141105dfc7726fd4709 Signed-off-by:Marcin Spiewak <marcin.spiewak@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22290 Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com>