1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 01:55:10 +03:00

Add backtraces for backup and backup_remove fail paths

This commit is contained in:
Zdenek Kabelac 2010-12-22 15:36:41 +00:00
parent bd43da4f9d
commit 2ae2ca89bf
3 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.80 -
====================================
Add backtraces for backup and backup_remove fail paths.
Detect errors from dm_task_set calls in _get_device_info (dmeventd).
Add backtraces for archive and backup_locally in check_current_backup().
Fix memory leak in debug mode of restart_clvmd() error path.

View File

@ -611,7 +611,8 @@ int vg_remove(struct volume_group *vg)
}
}
backup_remove(vg->cmd, vg->name);
if (!backup_remove(vg->cmd, vg->name))
stack;
if (ret)
log_print("Volume group \"%s\" successfully removed", vg->name);

View File

@ -164,8 +164,10 @@ static int vg_rename_path(struct cmd_context *cmd, const char *old_vg_path,
}
}
backup(vg);
backup_remove(cmd, vg_name_old);
if (!backup(vg))
stack;
if (!backup_remove(cmd, vg_name_old))
stack;
unlock_vg(cmd, vg_name_new);
unlock_and_free_vg(cmd, vg, vg_name_old);