master - dmeventd_thin: enable support for external command
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=85dab3963fbf8b3cc1be84f2d7c43257075ac2a3 Commit: 85dab3963fbf8b3cc1be84f2d7c43257075ac2a3 Parent: 8c4f3633ac460f24342a83e98afa6e8186d453a3 Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Jan 20 22:54:20 2017 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Sat Jan 21 00:01:05 2017 +0100
dmeventd_thin: enable support for external command
With this commit we start to support configurable action from thin-pool monitoring via 'dmeventd/thin_command'
--- WHATS_NEW_DM | 1 + daemons/dmeventd/plugins/thin/dmeventd_thin.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-)
WHATS_NEW_DM +1 -0
@@ -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.
daemons/dmeventd/plugins/thin/dmeventd_thin.c +1 -2
@@ -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; }