From d90a6478026dc2810947d552d6165ec7f0534894 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 29 Jan 2018 16:28:57 +0100 Subject: activation: separate reporting of error and monitoring status Avoid using same return code for reporting 2 different things and stricly report error code by return value and add new parameter for reporting monitoring status. This makes easier to recognize which error we got from dm_event and continue only with ENOENT. --- lib/raid/raid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/raid') diff --git a/lib/raid/raid.c b/lib/raid/raid.c index 5d2e1ea45..9b85373e2 100644 --- a/lib/raid/raid.c +++ b/lib/raid/raid.c @@ -544,12 +544,12 @@ static const char *_get_raid_dso_path(struct cmd_context *cmd) return get_monitor_dso_path(cmd, config_str); } -static int _raid_target_monitored(struct lv_segment *seg, int *pending) +static int _raid_target_monitored(struct lv_segment *seg, int *pending, int *monitored) { struct cmd_context *cmd = seg->lv->vg->cmd; const char *dso_path = _get_raid_dso_path(cmd); - return target_registered_with_dmeventd(cmd, dso_path, seg->lv, pending); + return target_registered_with_dmeventd(cmd, dso_path, seg->lv, pending, monitored); } static int _raid_set_events(struct lv_segment *seg, int evmask, int set) -- cgit v1.2.1