1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

thin: fix maintenance of _pmspare

When metadata grows lvm2 may need to extend also _pmspare volume.
This commit is contained in:
Zdenek Kabelac 2019-04-03 13:02:50 +02:00
parent e27d027155
commit fcec6691f0
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.03.02 -
===================================
Fix missing growth of _pmsmare volume when extending _tmeta volume.
Automatically grow thin metadata, when thin data gets too big.
Add synchronization with udev before removing cached devices.
Add support for caching VDO LVs and VDOPOOL LVs.

View File

@ -5539,6 +5539,10 @@ static int _lvresize_volume(struct logical_volume *lv,
display_lvname(lv),
display_size(cmd, (uint64_t) old_extents * vg->extent_size), old_extents,
display_size(cmd, (uint64_t) lv->le_count * vg->extent_size), lv->le_count);
/* Resizing metadata and PV list is not specified -> maintain size of _pmspare volume */
if ((&vg->pvs == pvh) && lv_is_pool_metadata(lv))
(void) handle_pool_metadata_spare(vg, 0, pvh, 1);
}
return 1;