1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Backtrace for failing drop_cached_metadata

This commit is contained in:
Zdenek Kabelac 2012-03-01 21:16:44 +00:00
parent 46e681ca62
commit de3692152f
2 changed files with 4 additions and 2 deletions

View File

@ -80,7 +80,8 @@ static int _vgmerge_single(struct cmd_context *cmd, const char *vg_name_to,
if (!archive(vg_from) || !archive(vg_to)) if (!archive(vg_from) || !archive(vg_to))
goto_bad; goto_bad;
drop_cached_metadata(vg_from); if (!drop_cached_metadata(vg_from))
stack;
/* Merge volume groups */ /* Merge volume groups */
dm_list_iterate_items_safe(pvl, tpvl, &vg_from->pvs) { dm_list_iterate_items_safe(pvl, tpvl, &vg_from->pvs) {

View File

@ -139,7 +139,8 @@ static int vg_rename_path(struct cmd_context *cmd, const char *old_vg_path,
goto error; goto error;
/* Remove references based on old name */ /* Remove references based on old name */
drop_cached_metadata(vg); if (!drop_cached_metadata(vg))
stack;
/* Change the volume group name */ /* Change the volume group name */
vg_rename(cmd, vg, vg_name_new); vg_rename(cmd, vg, vg_name_new);