1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +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 Version 2.02.60 - 23rd January 2010
=================================== ===================================
Add missing metadata reverts in pvmove error path.
Unlock shared lock in clvmd if activation calls failed. Unlock shared lock in clvmd if activation calls failed.
Fix return code of info call for query by uuid. Fix return code of info call for query by uuid.
Extend cmirrord man page. 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 */ /* Suspend lvs_changed */
if (!suspend_lvs(cmd, lvs_changed)) if (!suspend_lvs(cmd, lvs_changed)) {
vg_revert(vg);
goto_out; goto_out;
}
/* Suspend mirrors on subsequent calls */ /* Suspend mirrors on subsequent calls */
if (!first_time) { if (!first_time) {
@ -324,6 +326,7 @@ static int _update_metadata(struct cmd_context *cmd, struct volume_group *vg,
stack; stack;
if (!resume_lvs(cmd, lvs_changed)) if (!resume_lvs(cmd, lvs_changed))
stack; stack;
vg_revert(vg);
goto out; goto out;
} }