[lvm-devel] [PATCH 11/23] Add stack traces for archive
Zdenek Kabelac
zkabelac at redhat.com
Tue Dec 21 15:41:43 UTC 2010
If archive of back_locally fails - add stack trace.
Signed-off-by: Zdenek Kabelac <zkabelac at redhat.com>
---
lib/format_text/archiver.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/lib/format_text/archiver.c b/lib/format_text/archiver.c
index ef85c6c..3d291c8 100644
--- a/lib/format_text/archiver.c
+++ b/lib/format_text/archiver.c
@@ -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;
}
--
1.7.3.4
More information about the lvm-devel
mailing list