mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
vgrename: run fullscan
For vgrename run full scan so the command is able to properly detect name collision.
This commit is contained in:
parent
4806f38d70
commit
30746f31dd
@ -1,6 +1,7 @@
|
||||
Version 2.02.104
|
||||
===================================
|
||||
Improve message when unable to change discards setting on active thin pool.
|
||||
Run full scan before vgrename operation to avoid any cache name collision.
|
||||
|
||||
Version 2.02.103 - 4th October 2013
|
||||
===================================
|
||||
|
@ -83,6 +83,8 @@ static int vg_rename_path(struct cmd_context *cmd, const char *old_vg_path,
|
||||
if (!lvmetad_vg_list_to_lvmcache(cmd))
|
||||
stack;
|
||||
|
||||
lvmcache_label_scan(cmd, 2);
|
||||
|
||||
/* Avoid duplicates */
|
||||
if (!(vgids = get_vgids(cmd, 0)) || dm_list_empty(vgids)) {
|
||||
log_error("No complete volume groups found");
|
||||
|
Loading…
Reference in New Issue
Block a user