unit/lvol: fix uuid setting in unit tests
Signed-off-by: Maciej Szwed <maciej.szwed@intel.com> Change-Id: I868c3620edc13309d603cd29effa8e0a62788495 Reviewed-on: https://review.gerrithub.io/385411 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
parent
ea22acd559
commit
c40524fb81
@ -1069,7 +1069,7 @@ lvols_load(void)
|
||||
blob3 = calloc(1, sizeof(*blob3));
|
||||
SPDK_CU_ASSERT_FATAL(blob3 != NULL);
|
||||
blob3->id = 0x2;
|
||||
spdk_blob_md_set_xattr(blob2, "uuid", uuid, UUID_STRING_LEN);
|
||||
spdk_blob_md_set_xattr(blob3, "uuid", uuid, UUID_STRING_LEN);
|
||||
spdk_blob_md_set_xattr(blob3, "name", "lvol3", strnlen("lvol3", SPDK_LVOL_NAME_MAX) + 1);
|
||||
blob3->uuid[UUID_STRING_LEN - 2] = '3';
|
||||
|
||||
@ -1159,7 +1159,7 @@ lvol_open(void)
|
||||
blob3 = calloc(1, sizeof(*blob3));
|
||||
SPDK_CU_ASSERT_FATAL(blob3 != NULL);
|
||||
blob3->id = 0x2;
|
||||
spdk_blob_md_set_xattr(blob2, "uuid", uuid, UUID_STRING_LEN);
|
||||
spdk_blob_md_set_xattr(blob3, "uuid", uuid, UUID_STRING_LEN);
|
||||
spdk_blob_md_set_xattr(blob3, "name", "lvol3", strnlen("lvol3", SPDK_LVOL_NAME_MAX) + 1);
|
||||
blob3->uuid[UUID_STRING_LEN - 2] = '3';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user