mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvchange: add log_error for failure path
When change of monitoring fails, ensure there is log_error() printed.
This commit is contained in:
parent
cb2d32bdc4
commit
64b28e0839
@ -156,8 +156,11 @@ static int _lvchange_monitoring(struct cmd_context *cmd,
|
|||||||
log_verbose("Monitoring LV %s", display_lvname(lv));
|
log_verbose("Monitoring LV %s", display_lvname(lv));
|
||||||
else
|
else
|
||||||
log_verbose("Unmonitoring LV %s", display_lvname(lv));
|
log_verbose("Unmonitoring LV %s", display_lvname(lv));
|
||||||
if (!monitor_dev_for_events(cmd, lv, 0, dmeventd_monitor_mode()))
|
if (!monitor_dev_for_events(cmd, lv, 0, dmeventd_monitor_mode())) {
|
||||||
return_0;
|
log_error("Failed to change monitoring for %s volume.",
|
||||||
|
display_lvname(lv));
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user