summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2017-01-20 22:54:20 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2017-01-21 00:01:05 +0100
commit85dab3963fbf8b3cc1be84f2d7c43257075ac2a3 (patch)
tree65d132b40dd9849375b7f8af0e96daea845aa48b
parent8c4f3633ac460f24342a83e98afa6e8186d453a3 (diff)
downloadlvm2-85dab3963fbf8b3cc1be84f2d7c43257075ac2a3.tar.gz
dmeventd_thin: enable support for external command
With this commit we start to support configurable action from thin-pool monitoring via 'dmeventd/thin_command'
-rw-r--r--WHATS_NEW_DM1
-rw-r--r--daemons/dmeventd/plugins/thin/dmeventd_thin.c3
2 files changed, 2 insertions, 2 deletions
diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM
index a8d41052c..4903de37e 100644
--- a/WHATS_NEW_DM
+++ b/WHATS_NEW_DM
@@ -1,5 +1,6 @@
Version 1.02.138 -
=====================================
+ Support configurable command executed from dmeventd thin plugin.
Support new R|r human readable units output format.
Thin dmeventd plugin reacts faster on lvextend failure path with umount.
Add dm_stats_bind_from_fd() to bind a stats handle from a file descriptor.
diff --git a/daemons/dmeventd/plugins/thin/dmeventd_thin.c b/daemons/dmeventd/plugins/thin/dmeventd_thin.c
index 2367bdeaa..a676de3de 100644
--- a/daemons/dmeventd/plugins/thin/dmeventd_thin.c
+++ b/daemons/dmeventd/plugins/thin/dmeventd_thin.c
@@ -357,8 +357,7 @@ int register_device(const char *device,
if (!dmeventd_lvm2_command(state->mem, state->cmd_str,
sizeof(state->cmd_str),
- "lvextend --use-policies",
- device)) {
+ "_dmeventd_thin_command", device)) {
dmeventd_lvm2_exit_with_pool(state);
goto_bad;
}