mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Backtrace for failing drop_cached_metadata
This commit is contained in:
parent
46e681ca62
commit
de3692152f
@ -80,7 +80,8 @@ static int _vgmerge_single(struct cmd_context *cmd, const char *vg_name_to,
|
||||
if (!archive(vg_from) || !archive(vg_to))
|
||||
goto_bad;
|
||||
|
||||
drop_cached_metadata(vg_from);
|
||||
if (!drop_cached_metadata(vg_from))
|
||||
stack;
|
||||
|
||||
/* Merge volume groups */
|
||||
dm_list_iterate_items_safe(pvl, tpvl, &vg_from->pvs) {
|
||||
|
@ -139,7 +139,8 @@ static int vg_rename_path(struct cmd_context *cmd, const char *old_vg_path,
|
||||
goto error;
|
||||
|
||||
/* Remove references based on old name */
|
||||
drop_cached_metadata(vg);
|
||||
if (!drop_cached_metadata(vg))
|
||||
stack;
|
||||
|
||||
/* Change the volume group name */
|
||||
vg_rename(cmd, vg, vg_name_new);
|
||||
|
Loading…
Reference in New Issue
Block a user