]> sourceware.org Git - lvm2.git/commitdiff
activation: switch to warning
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 21 Jun 2016 13:16:03 +0000 (15:16 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 23 Jun 2016 12:53:59 +0000 (14:53 +0200)
Since this function does not have a way to return error use correct
reporting level as warning.

WHATS_NEW
lib/activate/activate.c

index ce77b6ca1f38555dd9f0f606745bc9b3aef25c09..6788e6a845480d7fc44e58865e81cfac74094f22 100644 (file)
--- 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.
index 089af5372f4bedb72a8052458305d87d3e172cd0..8892a2a1264b8d0e436e1a11bb6d3fa20e6c8c76 100644 (file)
@@ -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;
 
This page took 0.053629 seconds and 5 git commands to generate.