Loading
ut/lvol:use only single global variable to account for errors
There were two variables (g_lvserrno and g_lvolerrno) to assign and check after operations. This caused issues when developer mistakenly created callback that assigns one and then checks the other. This UT is ran to completion each time and only single operation is done at once. There is no need to account for both. This patch removes g_lvolerrno. Next one will simplify callbacks. Signed-off-by:Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I7d16b1913c13de56e1df2f5e36db11f15430979b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1483 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>