From 5818fbfbcf77c1cdaaf441b18eefbee0f958f14d Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 7 May 2024 16:27:08 +0200 Subject: [PATCH] cov: enum matching type --- lib/metadata/lv_manip.c | 6 +++--- tools/lvchange.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c index a616cfe79..bec363ef8 100644 --- a/lib/metadata/lv_manip.c +++ b/lib/metadata/lv_manip.c @@ -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 */ diff --git a/tools/lvchange.c b/tools/lvchange.c index da4b6f191..51da49a2b 100644 --- a/tools/lvchange.c +++ b/tools/lvchange.c @@ -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)) {