diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2017-10-23 11:20:32 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2017-10-23 12:00:43 +0200 |
commit | d6fcab900b5b33c55c7894c3f4a7cdd1dbb81c1a (patch) | |
tree | 1f912d0ebcc0fe0585be0faa039458589f9748c0 | |
parent | de58df390b6bd3f46841fdacb9a75defccf9f3e2 (diff) | |
download | lvm2-d6fcab900b5b33c55c7894c3f4a7cdd1dbb81c1a.tar.gz |
lvextend: detect stacked cache lv used for thinpool
Ensure, that cacheLV is not tried to be resize until full support is
added.
-rw-r--r-- | WHATS_NEW | 1 | ||||
-rw-r--r-- | lib/metadata/lv_manip.c | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,6 @@ Version 2.02.176 - =================================== + Avoid internal error when resizing cache type _tdata LV (not yet supported). Show original converted names when lvconverting LV to pool volume. Move lib code used only by liblvm into metadata-liblvm.c. Distinguish between device not found and excluded by filter. diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c index c0e9a99ab..b03f9cf97 100644 --- a/lib/metadata/lv_manip.c +++ b/lib/metadata/lv_manip.c @@ -4797,7 +4797,8 @@ static int _lvresize_check(struct logical_volume *lv, return 0; } - if (lv_is_cache_type(lv)) { + if (lv_is_cache_type(lv) || + (lv_is_thin_pool(lv) && lv_is_cache_type(seg_lv(first_seg(lv), 0)))) { log_error("Unable to resize logical volumes of cache type."); return 0; } |