diff --git a/WHATS_NEW b/WHATS_NEW index 0519527a9..b0e79c820 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.135 - ==================================== + Show correct error message for unsupported yet cache pool repair. Allow lvconvert cache pools' data and metadata LV to raid. Fix reading of old metadata with missing cache policy or mode settings. Issue error if external_device_info_source=udev and udev db record incomplete. diff --git a/tools/lvconvert.c b/tools/lvconvert.c index 19ee60754..72be45b45 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -2320,9 +2320,9 @@ out: return r; } -static int _lvconvert_pool_repair(struct cmd_context *cmd, - struct logical_volume *pool_lv, - struct lvconvert_params *lp) +static int _lvconvert_thin_pool_repair(struct cmd_context *cmd, + struct logical_volume *pool_lv, + struct lvconvert_params *lp) { const char *dmdir = dm_dir(); const char *thin_dump = @@ -3270,7 +3270,12 @@ static int _lvconvert_single(struct cmd_context *cmd, struct logical_volume *lv, if (arg_count(cmd, repair_ARG)) { if (lv_is_pool(lv)) { - if (!_lvconvert_pool_repair(cmd, lv, lp)) + if (lv_is_cache_pool(lv)) { + log_error("Repair for cache pool %s not yet implemented.", + display_lvname(lv)); + return ECMD_FAILED; + } + if (!_lvconvert_thin_pool_repair(cmd, lv, lp)) return_ECMD_FAILED; return ECMD_PROCESSED; }