summaryrefslogtreecommitdiff
path: root/tools/lvcreate.c
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2018-05-30 15:24:24 -0500
committerDavid Teigland <teigland@redhat.com>2018-05-30 15:24:24 -0500
commitc516321325f41f6b1f9d9342e2b0d0507b5a30fd (patch)
tree0cef250525c0ca7ef71b8c2ef7c0d08f080f9565 /tools/lvcreate.c
parent27495a355536360404c8b8ee254ccaebb054debc (diff)
downloadlvm2-c516321325f41f6b1f9d9342e2b0d0507b5a30fd.tar.gz
lvmlockd: enable lvcreate of new LV plus existing cache pool
In this command, lvcreate creates a new LV and then combines it with an existing cache pool, producing a cache LV. This command was previously not allowed in in a shared VG.
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 ee6df02ab..7f97ebd1c 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_cache_vol_with_new_origin_CMD ||
- cmd->command->command_enum == lvcreate_thin_vol_with_thinpool_or_sparse_snapshot_CMD ||
+ if (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) {
log_error("Use lvconvert to create thin pools and cache pools in a shared VG.");
goto out;