summaryrefslogtreecommitdiff
path: root/tools/lvcreate.c
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2018-05-25 12:53:53 -0500
committerDavid Teigland <teigland@redhat.com>2018-05-30 09:25:45 -0500
commit948f2d997990048ad6759bfb25f042a4ddbb6a83 (patch)
tree25379be9f903a98e41e7d163e5b4b1c6b430d40c /tools/lvcreate.c
parentdb8d3bdfa93bb08a85953f2f3150ee27dffaa5fe (diff)
downloadlvm2-948f2d997990048ad6759bfb25f042a4ddbb6a83.tar.gz
lvmlockd: enable lvcreate of thin pool and thin lv in one command
Previously, thin pools and thin lvs need needed to be created with separate commands, now the combined command is permitted.
Diffstat (limited to 'tools/lvcreate.c')
-rw-r--r--tools/lvcreate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/lvcreate.c b/tools/lvcreate.c
index e901968d7..39170dd4f 100644
--- a/tools/lvcreate.c
+++ b/tools/lvcreate.c
@@ -1638,8 +1638,7 @@ static int _lvcreate_single(struct cmd_context *cmd, const char *vg_name,
lp->snapshot ? lp->origin_name : "", lp->segtype->name);
if (is_lockd_type(vg->lock_type)) {
- if (cmd->command->command_enum == lvcreate_thin_vol_and_thinpool_CMD ||
- cmd->command->command_enum == lvcreate_cachepool_CMD ||
+ if (cmd->command->command_enum == lvcreate_cachepool_CMD ||
cmd->command->command_enum == lvcreate_cache_vol_with_new_origin_CMD ||
cmd->command->command_enum == lvcreate_thin_vol_with_thinpool_or_sparse_snapshot_CMD ||
cmd->command->command_enum == lvcreate_cache_vol_with_new_origin_or_convert_to_cache_vol_with_cachepool_CMD) {