From 2e0605d6db9723d4bea472b21352d398f29e226e Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sat, 21 Jan 2017 17:37:01 +0100 Subject: [PATCH] dmeventd_thin: internal command without lvm prefix Internal command processing needs to go without 'lvm ' prefix. --- daemons/dmeventd/plugins/thin/dmeventd_thin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemons/dmeventd/plugins/thin/dmeventd_thin.c b/daemons/dmeventd/plugins/thin/dmeventd_thin.c index a676de3de..a6a534daf 100644 --- a/daemons/dmeventd/plugins/thin/dmeventd_thin.c +++ b/daemons/dmeventd/plugins/thin/dmeventd_thin.c @@ -375,7 +375,8 @@ int register_device(const char *device, dm_split_words(str, maxcmd - 1, 0, state->argv); _init_thread_signals(state); - } + } else + memmove(state->cmd_str, state->cmd_str + 4, strlen(state->cmd_str + 4) + 1); state->pid = -1; *user = state; -- 2.43.5