summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2017-01-21 17:37:01 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2017-01-21 17:42:19 +0100
commit2e0605d6db9723d4bea472b21352d398f29e226e (patch)
treee4e4c617af266c20244003350b44450ea7c3768e
parent85dab3963fbf8b3cc1be84f2d7c43257075ac2a3 (diff)
downloadlvm2-2e0605d6db9723d4bea472b21352d398f29e226e.tar.gz
dmeventd_thin: internal command without lvm prefix
Internal command processing needs to go without 'lvm ' prefix.
-rw-r--r--daemons/dmeventd/plugins/thin/dmeventd_thin.c3
1 files changed, 2 insertions, 1 deletions
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;