mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvconvert: use pvmove as part of renamed LV name
LV with pvmove_ prefix is not allowed to be created by user so bigger chance our selected name will never exist. TODO: probably add code to get generic unused LV name...
This commit is contained in:
parent
a8696ee72a
commit
b8a4fda0f7
@ -77,7 +77,7 @@ int swap_lv_identifiers(struct cmd_context *cmd,
|
||||
dm_list_splice(&b->tags, &tlv.tags);
|
||||
|
||||
/* rename temporarily to 'unused' name */
|
||||
if (!lv_rename_update(cmd, a, "pmove_tmeta", 0))
|
||||
if (!lv_rename_update(cmd, a, "pvmove_tmeta", 0))
|
||||
return_0;
|
||||
/* name rename 'b' to unused name of 'a' */
|
||||
if (!lv_rename_update(cmd, b, aname, 0))
|
||||
|
Loading…
Reference in New Issue
Block a user