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:
parent
3e91823b3e
commit
5818fbfbcf
@ -6730,7 +6730,7 @@ int lv_resize(struct cmd_context *cmd, struct logical_volume *lv,
|
||||
lp_meta.size = lp->poolmetadata_size;
|
||||
lp_meta.sign = lp->poolmetadata_sign;
|
||||
lp->poolmetadata_size = 0;
|
||||
lp->poolmetadata_sign = 0;
|
||||
lp->poolmetadata_sign = SIGN_NONE;
|
||||
|
||||
} else if (lv_is_thin_pool(lv) && lp->poolmetadata_size) {
|
||||
/* 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.sign = lp->poolmetadata_sign;
|
||||
lp->poolmetadata_size = 0;
|
||||
lp->poolmetadata_sign = 0;
|
||||
lp->poolmetadata_sign = SIGN_NONE;
|
||||
|
||||
} else if (lv_is_thin_pool_metadata(lv)) {
|
||||
/* 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_sign;
|
||||
lp->poolmetadata_size = 0;
|
||||
lp->poolmetadata_sign = 0;
|
||||
lp->poolmetadata_sign = SIGN_NONE;
|
||||
}
|
||||
/* else lp_meta.extents|size from lp->extents|size above */
|
||||
|
||||
|
@ -95,7 +95,7 @@ static int _lvchange_pool_update(struct cmd_context *cmd,
|
||||
uint32_t *mr)
|
||||
{
|
||||
int update = 0;
|
||||
unsigned val;
|
||||
thin_zero_t val;
|
||||
thin_discards_t discards;
|
||||
|
||||
if (arg_is_set(cmd, discards_ARG)) {
|
||||
|
Loading…
Reference in New Issue
Block a user