1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/lib/metadata
Zdenek Kabelac 77fdc17d70 alloc: improve estimation of sufficient_pes_free
Metadata size was calculated correctly only for raids.

Fixes problem for crash during lvcreate when thin-pool was created
on a VG where remaining free space had the size to only fit a single
metadata LV and not also its _pmspare.

Lvcreate crashed with this assert message:

lvcreate: metadata/pv_map.c:198: consume_pv_area: Assertion `to_go <= pva->count' failed.
Aborted (core dumped)

TODO: there is probably to large overload of several alloc_handle
variables.

Reported-by: Wu Guanghao<wuguanghao3@huawei.com>
Reported-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
2020-09-11 21:51:24 +02:00
..
cache_manip.c fix bad result from _cache_min_metadata_size 2020-06-10 12:17:34 -05:00
integrity_manip.c debug: drop debug trace from regular path 2020-09-10 23:55:03 +02:00
lv_alloc.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
lv_manip.c alloc: improve estimation of sufficient_pes_free 2020-09-11 21:51:24 +02:00
lv.c writecache: show error in lv_health_status and lv_attr 2020-06-10 12:13:48 -05:00
lv.h Remove unused clvm variations for active LVs 2018-06-07 16:17:04 +01:00
merge.c lvconvert: fix conversion to 'mirrored' mirror log with larger regionsize 2020-07-09 14:39:50 +02:00
metadata-exported.h integrity: report mismatches 2020-09-01 17:13:21 -05:00
metadata.c gcc: hide warn about possible uninitialized use of dev_ret 2020-09-01 23:40:24 +02:00
metadata.h pass cmd struct through more functions 2020-04-21 10:58:05 -05:00
mirror.c fix dev_unset_last_byte after write error 2019-11-13 09:36:58 -06:00
pool_manip.c pool: zero metadata 2020-06-24 15:01:03 +02:00
pv_alloc.h doc: change fsf address 2016-01-21 12:11:37 +01:00
pv_list.c move pv_list code into lib 2020-04-13 10:04:14 -05:00
pv_manip.c pvresize: add missing return 2018-06-08 14:36:56 +02:00
pv_map.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
pv_map.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
pv.c lvmcache: renaming functions and variables 2019-08-16 13:26:11 -05:00
pv.h metadata: import device name hint from metadata 2019-09-30 11:38:10 -05:00
raid_manip.c lvconvert: display warning if raid1 LV image count does not change 2020-07-20 15:42:15 +02:00
segtype.c segtype: add linear 2018-06-05 16:23:18 +02:00
segtype.h Revert "lvdisplay: dispaly correct status when underlying devs missing" 2020-08-28 13:28:15 -05:00
snapshot_manip.c writecache: allow snapshot of LV with writecache 2020-06-10 12:18:00 -05:00
takeover_matrix.h lvconvert: add infrastructure for RaidLV reshaping support 2017-02-24 05:20:58 +01:00
thin_manip.c cleanup: comment typo 2020-09-10 23:55:03 +02:00
vdo_manip.c vdo: fix slab size bits calculation 2020-02-25 17:43:16 +01:00
vg.c gcc: use apropriate type for reading and printing values 2020-08-28 21:43:03 +02:00
vg.h metadata: include description with command in metadata areas 2019-06-20 16:09:05 -05:00
writecache_manip.c writecache: correct usage of const struct 2020-08-28 21:43:02 +02:00