1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cov: enum matching type

This commit is contained in:
Zdenek Kabelac 2024-05-07 16:27:08 +02:00
parent 3e91823b3e
commit 5818fbfbcf
2 changed files with 4 additions and 4 deletions

View File

@ -6730,7 +6730,7 @@ int lv_resize(struct cmd_context *cmd, struct logical_volume *lv,
lp_meta.size = lp->poolmetadata_size; lp_meta.size = lp->poolmetadata_size;
lp_meta.sign = lp->poolmetadata_sign; lp_meta.sign = lp->poolmetadata_sign;
lp->poolmetadata_size = 0; lp->poolmetadata_size = 0;
lp->poolmetadata_sign = 0; lp->poolmetadata_sign = SIGN_NONE;
} else if (lv_is_thin_pool(lv) && lp->poolmetadata_size) { } else if (lv_is_thin_pool(lv) && lp->poolmetadata_size) {
/* extend both thin pool data and metadata */ /* extend both thin pool data and metadata */
@ -6742,7 +6742,7 @@ int lv_resize(struct cmd_context *cmd, struct logical_volume *lv,
lp_meta.size = lp->poolmetadata_size; lp_meta.size = lp->poolmetadata_size;
lp_meta.sign = lp->poolmetadata_sign; lp_meta.sign = lp->poolmetadata_sign;
lp->poolmetadata_size = 0; lp->poolmetadata_size = 0;
lp->poolmetadata_sign = 0; lp->poolmetadata_sign = SIGN_NONE;
} else if (lv_is_thin_pool_metadata(lv)) { } else if (lv_is_thin_pool_metadata(lv)) {
/* extend only thin pool metadata */ /* extend only thin pool metadata */
@ -6754,7 +6754,7 @@ int lv_resize(struct cmd_context *cmd, struct logical_volume *lv,
lp_meta.size = lp->poolmetadata_size; lp_meta.size = lp->poolmetadata_size;
lp_meta.size = lp->poolmetadata_sign; lp_meta.size = lp->poolmetadata_sign;
lp->poolmetadata_size = 0; lp->poolmetadata_size = 0;
lp->poolmetadata_sign = 0; lp->poolmetadata_sign = SIGN_NONE;
} }
/* else lp_meta.extents|size from lp->extents|size above */ /* else lp_meta.extents|size from lp->extents|size above */

View File

@ -95,7 +95,7 @@ static int _lvchange_pool_update(struct cmd_context *cmd,
uint32_t *mr) uint32_t *mr)
{ {
int update = 0; int update = 0;
unsigned val; thin_zero_t val;
thin_discards_t discards; thin_discards_t discards;
if (arg_is_set(cmd, discards_ARG)) { if (arg_is_set(cmd, discards_ARG)) {