[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] [PATCH 11/23] Add stack traces for archive



If archive of back_locally fails - add stack trace.

Signed-off-by: Zdenek Kabelac <zkabelac 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]