diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2018-01-29 16:28:57 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2018-02-12 22:14:59 +0100 |
commit | d90a6478026dc2810947d552d6165ec7f0534894 (patch) | |
tree | 2be38f4894f0cbae9f3a308ef65a99e855c16820 /lib/raid | |
parent | 12fba201be314dd16ea01fc756e39c04c8ba50c3 (diff) | |
download | lvm2-d90a6478026dc2810947d552d6165ec7f0534894.tar.gz |
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.
Diffstat (limited to 'lib/raid')
-rw-r--r-- | lib/raid/raid.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |