summaryrefslogtreecommitdiff
path: root/lib/activate/activate.h
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2018-01-29 16:28:57 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2018-02-12 22:14:59 +0100
commitd90a6478026dc2810947d552d6165ec7f0534894 (patch)
tree2be38f4894f0cbae9f3a308ef65a99e855c16820 /lib/activate/activate.h
parent12fba201be314dd16ea01fc756e39c04c8ba50c3 (diff)
downloadlvm2-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/activate/activate.h')
-rw-r--r--lib/activate/activate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/activate/activate.h b/lib/activate/activate.h
index 25b7cc892..b1cc17617 100644
--- a/lib/activate/activate.h
+++ b/lib/activate/activate.h
@@ -208,7 +208,7 @@ int monitor_dev_for_events(struct cmd_context *cmd, const struct logical_volume
# include "libdevmapper-event.h"
char *get_monitor_dso_path(struct cmd_context *cmd, const char *libpath);
int target_registered_with_dmeventd(struct cmd_context *cmd, const char *dso,
- const struct logical_volume *lv, int *pending);
+ const struct logical_volume *lv, int *pending, int *monitored);
int target_register_events(struct cmd_context *cmd, const char *dso, const struct logical_volume *lv,
int evmask __attribute__((unused)), int set, int timeout);
#endif