1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

lvconvert: prevent combining split snapshots in shared vg

splitting snapshots was already prevented.
This commit is contained in:
David Teigland 2017-11-21 11:45:49 -06:00
parent ea0463791d
commit 175d06a929

View File

@ -3828,6 +3828,11 @@ static int _lvconvert_combine_split_snapshot_single(struct cmd_context *cmd,
{ {
const char *origin_name = cmd->position_argv[0]; const char *origin_name = cmd->position_argv[0];
if (is_lockd_type(lv->vg->lock_type)) {
log_error("Unable to combine split snapshots in VG with lock_type %s", lv->vg->lock_type);
return ECMD_FAILED;
}
/* If origin_name includes VG name, the VG name is removed. */ /* If origin_name includes VG name, the VG name is removed. */
if (!validate_lvname_param(cmd, &lv->vg->name, &origin_name)) if (!validate_lvname_param(cmd, &lv->vg->name, &origin_name))
return_ECMD_FAILED; return_ECMD_FAILED;