diff --git a/include/spdk/lvol.h b/include/spdk/lvol.h index 2c219205e..eb66a403d 100644 --- a/include/spdk/lvol.h +++ b/include/spdk/lvol.h @@ -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. diff --git a/lib/lvol/lvol.c b/lib/lvol/lvol.c index c5b9e2c7d..aeff2a979 100644 --- a/lib/lvol/lvol.c +++ b/lib/lvol/lvol.c @@ -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