summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2016-06-21 15:16:03 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2016-06-23 14:53:59 +0200
commitaf36f5ad369ebf4c1d768145a827436ccef22f63 (patch)
treee8e2a317cf561864d3a70f9b525c1b1c153d4ae4
parent751163a74375cc3bfc9f338f1317f14a23798812 (diff)
downloadlvm2-af36f5ad369ebf4c1d768145a827436ccef22f63.tar.gz
activation: switch to warning
Since this function does not have a way to return error use correct reporting level as warning.
-rw-r--r--WHATS_NEW1
-rw-r--r--lib/activate/activate.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/WHATS_NEW b/WHATS_NEW
index ce77b6ca1..6788e6a84 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.158 -
=================================
+ Switch to log_warn() for failing activation status query.
Refactor lvconvert argument handling code.
Add --logonly option to report only cmd log for a command, not other reports.
Add log/command_log_selection to configure default selection used on cmd log.
diff --git a/lib/activate/activate.c b/lib/activate/activate.c
index 089af5372..8892a2a12 100644
--- a/lib/activate/activate.c
+++ b/lib/activate/activate.c
@@ -1454,9 +1454,9 @@ static int _lv_is_active(const struct logical_volume *lv,
* Old users of this function will never be affected by this,
* since they are only concerned about active vs. not active.
* New users of this function who specifically ask for 'exclusive'
- * will be given an error message.
+ * will be given a warning message.
*/
- log_error("Unable to determine exclusivity of %s.", display_lvname(lv));
+ log_warn("WARNING: Unable to determine exclusivity of %s.", display_lvname(lv));
e = 0;