1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

activation: switch to warning

Since this function does not have a way to return error use correct
reporting level as warning.
This commit is contained in:
Zdenek Kabelac 2016-06-21 15:16:03 +02:00
parent 751163a743
commit af36f5ad36
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.158 - Version 2.02.158 -
================================= =================================
Switch to log_warn() for failing activation status query.
Refactor lvconvert argument handling code. Refactor lvconvert argument handling code.
Add --logonly option to report only cmd log for a command, not other reports. 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. Add log/command_log_selection to configure default selection used on cmd log.

View 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, * Old users of this function will never be affected by this,
* since they are only concerned about active vs. not active. * since they are only concerned about active vs. not active.
* New users of this function who specifically ask for 'exclusive' * 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; e = 0;