1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +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:
Zdenek Kabelac 2013-10-08 11:15:05 +02:00
parent 4806f38d70
commit 30746f31dd
2 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
Version 2.02.104 Version 2.02.104
=================================== ===================================
Improve message when unable to change discards setting on active thin pool. 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 Version 2.02.103 - 4th October 2013
=================================== ===================================

View File

@ -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)) if (!lvmetad_vg_list_to_lvmcache(cmd))
stack; stack;
lvmcache_label_scan(cmd, 2);
/* Avoid duplicates */ /* Avoid duplicates */
if (!(vgids = get_vgids(cmd, 0)) || dm_list_empty(vgids)) { if (!(vgids = get_vgids(cmd, 0)) || dm_list_empty(vgids)) {
log_error("No complete volume groups found"); log_error("No complete volume groups found");