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

Add backtraces for archive and backup_locally

If archive or back_locally fails - add stack trace.
This commit is contained in:
Zdenek Kabelac 2010-12-22 13:45:33 +00:00
parent 8382fc3e85
commit 1102378e1c
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.80 -
====================================
Add backtraces for archive and backup_locally in check_current_backup().
Fix memory leak in debug mode of restart_clvmd() error path.
Log error message for pthread_join() failure in clvmd.

View File

@ -452,9 +452,12 @@ void check_current_backup(struct volume_group *vg)
log_suppress(old_suppress);
if (vg_backup) {
archive(vg_backup);
if (!archive(vg_backup))
stack;
free_vg(vg_backup);
}
archive(vg);
backup_locally(vg);
if (!archive(vg))
stack;
if (!backup_locally(vg))
stack;
}