Update SPDK_LVOL_NAME_MAX and SPDK_LVS_NAME_MAX to 256

Signed-off-by: Derek Su <derek.su@suse.com>
This commit is contained in:
Derek Su 2023-06-10 15:39:40 +08:00 committed by David Ko
parent c22a9a7683
commit 59f61e6fd0
2 changed files with 4 additions and 4 deletions

View File

@ -37,8 +37,8 @@ enum lvs_clear_method {
};
/* Must include null terminator. */
#define SPDK_LVS_NAME_MAX 64
#define SPDK_LVOL_NAME_MAX 64
#define SPDK_LVS_NAME_MAX 256
#define SPDK_LVOL_NAME_MAX 256
/**
* Parameters for lvolstore initialization.
@ -70,7 +70,7 @@ struct spdk_lvs_opts {
*/
spdk_bs_esnap_dev_create esnap_bs_dev_create;
} __attribute__((packed));
SPDK_STATIC_ASSERT(sizeof(struct spdk_lvs_opts) == 88, "Incorrect size");
SPDK_STATIC_ASSERT(sizeof(struct spdk_lvs_opts) == 280, "Incorrect size");
/**
* Initialize an spdk_lvs_opts structure to the defaults.

View File

@ -652,7 +652,7 @@ lvs_opts_copy(const struct spdk_lvs_opts *src, struct spdk_lvs_opts *dst)
/* You should not remove this statement, but need to update the assert statement
* if you add a new field, and also add a corresponding SET_FIELD statement */
SPDK_STATIC_ASSERT(sizeof(struct spdk_lvs_opts) == 88, "Incorrect size");
SPDK_STATIC_ASSERT(sizeof(struct spdk_lvs_opts) == 280, "Incorrect size");
#undef FIELD_OK
#undef SET_FIELD