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

Drop cached metadata when renaming a VG.

This commit is contained in:
Alasdair Kergon 2008-06-06 13:04:44 +00:00
parent f0dfe9dcda
commit 179b9822b4
2 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,7 @@ Version 2.02.38 -
Version 2.02.37 -
=================================
Drop cached metadata when renaming a VG.
Allow for vginfo changing during _vg_read.
Decode numbers in clvmd debugging output.
Add missing deactivation after activation failure in lvcreate -Zy.

View File

@ -133,6 +133,8 @@ static int vg_rename_path(struct cmd_context *cmd, const char *old_vg_path,
}
}
drop_cached_metadata(vg_old);
/* store it on disks */
log_verbose("Writing out updated volume group");
if (!vg_write(vg_old) || !vg_commit(vg_old)) {