1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-10-07 15:33:21 +03:00

Fix vgrename using UUID in case there are VGs with the same name.

This commit is contained in:
Peter Rajnoha
2008-12-19 14:22:48 +00:00
parent 0296197999
commit 3ad47d16ab
9 changed files with 55 additions and 26 deletions

View File

@@ -1084,9 +1084,10 @@ int lv_mknodes(struct cmd_context *cmd, const struct logical_volume *lv)
if (!_lv_info(cmd, lv, 1, &info, 0, 0, 0))
return_0;
if (info.exists)
r = dev_manager_lv_mknodes(lv);
else
if (info.exists) {
if (lv_is_visible(lv))
r = dev_manager_lv_mknodes(lv);
} else
r = dev_manager_lv_rmnodes(lv);
fs_unlock();