From 1e699db6314368926d85c843b9bfdcdc4c297778 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 8 Jul 2010 12:24:04 +0000 Subject: [PATCH] Do not log backtrace in valid _lv_resume() code path --- WHATS_NEW | 2 ++ lib/activate/activate.c | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index b384bf30d..2a9fe62e8 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,7 @@ Version 2.02.71 - =============================== + Do not log backtrace in valid _lv_resume() code path. + Cleanup help strings in configure.in. Prompt if metadataignore with vgextend or pvchange would adjust vg_mda_copies. Adjust vg_mda_copies if metadataignore given with vgextend or pvchange. Adjust auto-metadata repair and caching logic to try to cope with empty mdas. diff --git a/lib/activate/activate.c b/lib/activate/activate.c index 2128c4198..7edd72872 100644 --- a/lib/activate/activate.c +++ b/lib/activate/activate.c @@ -961,8 +961,10 @@ static int _lv_resume(struct cmd_context *cmd, const char *lvid_s, goto_out; if (!info.exists || !info.suspended) { - r = error_if_not_active ? 0 : 1; - goto_out; + if (error_if_not_active) + goto_out; + r = 1; + goto out; } if (!_lv_activate_lv(lv)) -- 2.43.5