From 85dab3963fbf8b3cc1be84f2d7c43257075ac2a3 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 20 Jan 2017 22:54:20 +0100 Subject: [PATCH] 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(-) 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; } -- 2.43.5