mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
lvconvert: Restrict use of cache LVs.
Refuse use of -m and -s with cache LVs until full support can be provided.
This commit is contained in:
parent
b4f5be76a3
commit
bdb05cc05e
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.112 -
|
Version 2.02.112 -
|
||||||
=====================================
|
=====================================
|
||||||
|
Ensure only supported volume types are used with cache segments.
|
||||||
Fix inablility to specify cachemode when 'lvconvert'ing to cache-pool.
|
Fix inablility to specify cachemode when 'lvconvert'ing to cache-pool.
|
||||||
Grab cluster lock for active LVs when setting clustered attribute.
|
Grab cluster lock for active LVs when setting clustered attribute.
|
||||||
Use va_copy to properly pass va_list through functions.
|
Use va_copy to properly pass va_list through functions.
|
||||||
|
@ -1725,6 +1725,12 @@ static int _lvconvert_mirrors(struct cmd_context *cmd,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (lv_is_cache_type(lv)) {
|
||||||
|
log_error("Mirrors are not yet supported on cache LVs %s.",
|
||||||
|
display_lvname(lv));
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* Adjust mimage and/or log count */
|
/* Adjust mimage and/or log count */
|
||||||
if (!_lvconvert_mirrors_parse_params(cmd, lv, lp,
|
if (!_lvconvert_mirrors_parse_params(cmd, lv, lp,
|
||||||
&old_mimage_count, &old_log_count,
|
&old_mimage_count, &old_log_count,
|
||||||
@ -2011,6 +2017,12 @@ static int _lvconvert_snapshot(struct cmd_context *cmd,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (lv_is_cache_type(lv)) {
|
||||||
|
log_error("Snapshots are not yet supported with cache type LVs %s.",
|
||||||
|
display_lvname(lv));
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (!(org = find_lv(lv->vg, lp->origin_lv_name))) {
|
if (!(org = find_lv(lv->vg, lp->origin_lv_name))) {
|
||||||
log_error("Couldn't find origin volume %s.", lp->origin_lv_name);
|
log_error("Couldn't find origin volume %s.", lp->origin_lv_name);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user