mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
activation: report error message
If the monitoring activation failed and we have not yet reported error - give the user error message for failure reason.
This commit is contained in:
parent
57c0f72b1d
commit
5d0e7fb4ed
@ -1391,6 +1391,9 @@ int monitor_dev_for_events(struct cmd_context *cmd, struct logical_volume *lv,
|
||||
r = (monitored && monitor) || (!monitored && !monitor);
|
||||
}
|
||||
|
||||
if (!r && !error_message_produced())
|
||||
log_error("%sonitoring %s/%s failed.", monitor ? "M" : "Not m",
|
||||
lv->vg->name, lv->name);
|
||||
return r;
|
||||
#else
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user