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

liblvm: Fix segfault in lvm_pv_remove.

Since 4fa5add6b1 ("pvcreate: Wipe cached
bootloaderarea when wiping label.") label_remove is responsible
for the lvmcache_del.  (toollib and liblvm need fixing to share
the code.)
This commit is contained in:
Alasdair G Kergon 2017-10-30 22:03:35 +00:00
parent 7e3be7d1ba
commit 248144d066
2 changed files with 1 additions and 3 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.176 -
===================================
liblvm: Fix segfault in lvm_pv_remove. (2.02.173)
Do not allow storing VG metadata with LV without any segment.
Fix printed message when thin snapshot was already merged.
Remove created spare LV when creation of thin-pool failed.

View File

@ -602,9 +602,6 @@ static int _pvremove_single(struct cmd_context *cmd, const char *pv_name,
goto out;
}
if (info)
lvmcache_del(info);
if (!lvmetad_pv_gone_by_dev(dev))
goto_out;