]> sourceware.org Git - lvm2.git/commit
alloc: improve estimation of sufficient_pes_free
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 11 Sep 2020 18:57:20 +0000 (20:57 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 11 Sep 2020 19:51:24 +0000 (21:51 +0200)
commit77fdc17d70e62cab75efaaf0dad02493b948610d
tree16c80896172dac5ff1a8c4efcffa00ce6338a67c
parent7db124774a2b79105e7c9c6b42df88219fc070ca
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>
WHATS_NEW
lib/metadata/lv_manip.c
This page took 0.60243 seconds and 5 git commands to generate.