1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00
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
..
2020-09-01 17:57:50 +02:00
2020-05-13 17:20:16 -05:00
2020-09-01 17:57:50 +02:00
2018-06-08 13:40:53 +01:00
2018-06-08 13:40:53 +01:00
2019-02-28 10:30:54 -06:00
2018-06-08 13:40:53 +01:00
2018-06-08 13:40:53 +01:00
2018-06-08 13:40:53 +01:00