mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvextend: fix overprovisioning check for thin lvs
18722dfdf4
lvresize: restructure code
mistakenly changed the overprovisioning check from applying
to all lv_is_thin_type lvs to only lv_is_thin_pool lvs, so
it no longer applied when extending thin lvs. The result
was missing warning messages when extending thin lvs.
This commit is contained in:
parent
fa7fe5cbbe
commit
4baef0f93f
@ -7007,9 +7007,10 @@ int lv_resize(struct cmd_context *cmd, struct logical_volume *lv,
|
|||||||
if (lv_is_thin_pool(lv_top)) {
|
if (lv_is_thin_pool(lv_top)) {
|
||||||
if (!update_thin_pool_lv(lv_top, 1))
|
if (!update_thin_pool_lv(lv_top, 1))
|
||||||
goto_out;
|
goto_out;
|
||||||
if (is_extend)
|
|
||||||
thin_pool_check_overprovisioning(lv_top);
|
|
||||||
}
|
}
|
||||||
|
if (lv_is_thin_type(lv_top) && is_extend)
|
||||||
|
thin_pool_check_overprovisioning(lv_top);
|
||||||
|
|
||||||
if (lv_main && lv_is_cow_covering_origin(lv_main)) {
|
if (lv_main && lv_is_cow_covering_origin(lv_main)) {
|
||||||
if (!monitor_dev_for_events(cmd, lv_main, 0, 0))
|
if (!monitor_dev_for_events(cmd, lv_main, 0, 0))
|
||||||
stack;
|
stack;
|
||||||
|
Loading…
Reference in New Issue
Block a user