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:
parent
c22a9a7683
commit
59f61e6fd0
@ -37,8 +37,8 @@ enum lvs_clear_method {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* Must include null terminator. */
|
/* Must include null terminator. */
|
||||||
#define SPDK_LVS_NAME_MAX 64
|
#define SPDK_LVS_NAME_MAX 256
|
||||||
#define SPDK_LVOL_NAME_MAX 64
|
#define SPDK_LVOL_NAME_MAX 256
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parameters for lvolstore initialization.
|
* Parameters for lvolstore initialization.
|
||||||
@ -70,7 +70,7 @@ struct spdk_lvs_opts {
|
|||||||
*/
|
*/
|
||||||
spdk_bs_esnap_dev_create esnap_bs_dev_create;
|
spdk_bs_esnap_dev_create esnap_bs_dev_create;
|
||||||
} __attribute__((packed));
|
} __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.
|
* Initialize an spdk_lvs_opts structure to the defaults.
|
||||||
|
@ -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
|
/* 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 */
|
* 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 FIELD_OK
|
||||||
#undef SET_FIELD
|
#undef SET_FIELD
|
||||||
|
Loading…
Reference in New Issue
Block a user