1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Add some missing vg_revrts calls when pvmove aborts.

This commit is contained in:
Milan Broz 2010-01-26 08:01:18 +00:00
parent 9b5fd08d26
commit e01bdd2fab
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.60 - 23rd January 2010
===================================
Add missing metadata reverts in pvmove error path.
Unlock shared lock in clvmd if activation calls failed.
Fix return code of info call for query by uuid.
Extend cmirrord man page.

View File

@ -303,8 +303,10 @@ static int _update_metadata(struct cmd_context *cmd, struct volume_group *vg,
}
/* Suspend lvs_changed */
if (!suspend_lvs(cmd, lvs_changed))
if (!suspend_lvs(cmd, lvs_changed)) {
vg_revert(vg);
goto_out;
}
/* Suspend mirrors on subsequent calls */
if (!first_time) {
@ -324,6 +326,7 @@ static int _update_metadata(struct cmd_context *cmd, struct volume_group *vg,
stack;
if (!resume_lvs(cmd, lvs_changed))
stack;
vg_revert(vg);
goto out;
}