mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvextend: detect stacked cache lv used for thinpool
Ensure, that cacheLV is not tried to be resize until full support is added.
This commit is contained in:
parent
de58df390b
commit
d6fcab900b
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.176 -
|
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.
|
Show original converted names when lvconverting LV to pool volume.
|
||||||
Move lib code used only by liblvm into metadata-liblvm.c.
|
Move lib code used only by liblvm into metadata-liblvm.c.
|
||||||
Distinguish between device not found and excluded by filter.
|
Distinguish between device not found and excluded by filter.
|
||||||
|
@ -4797,7 +4797,8 @@ static int _lvresize_check(struct logical_volume *lv,
|
|||||||
return 0;
|
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.");
|
log_error("Unable to resize logical volumes of cache type.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user