diff options
author | Alasdair Kergon <agk@redhat.com> | 2008-06-06 13:04:44 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2008-06-06 13:04:44 +0000 |
commit | 179b9822b42b2402e8c37573e7a629709501ccf3 (patch) | |
tree | 2c30a8106c956258f779dd28863e65954a09aec3 /tools/vgrename.c | |
parent | f0dfe9dcdab36383a9c8920ef9623f6d94d4f868 (diff) | |
download | lvm2-179b9822b42b2402e8c37573e7a629709501ccf3.tar.gz lvm2-179b9822b42b2402e8c37573e7a629709501ccf3.tar.xz lvm2-179b9822b42b2402e8c37573e7a629709501ccf3.zip |
Drop cached metadata when renaming a VG.
Diffstat (limited to 'tools/vgrename.c')
-rw-r--r-- | tools/vgrename.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/vgrename.c b/tools/vgrename.c index eafcdab6..1553e4e4 100644 --- a/tools/vgrename.c +++ b/tools/vgrename.c @@ -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)) { |