diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2017-01-21 17:37:01 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2017-01-21 17:42:19 +0100 |
commit | 2e0605d6db9723d4bea472b21352d398f29e226e (patch) | |
tree | e4e4c617af266c20244003350b44450ea7c3768e | |
parent | 85dab3963fbf8b3cc1be84f2d7c43257075ac2a3 (diff) | |
download | lvm2-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.c | 3 |
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; |