1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-11 20:58:50 +03:00

undo a few 'stack' moves

This commit is contained in:
Alasdair Kergon 2008-01-30 14:17:29 +00:00
parent 67cdbd7e4d
commit 2871881859
2 changed files with 6 additions and 3 deletions

View File

@ -1752,13 +1752,15 @@ int lv_rename(struct cmd_context *cmd, struct logical_volume *lv,
backup(vg);
if (!suspend_lv(cmd, lv)) {
stack;
vg_revert(vg);
return_0;
return 0;
}
if (!vg_commit(vg)) {
stack;
resume_lv(cmd, lv);
return_0;
return 0;
}
resume_lv(cmd, lv);

View File

@ -211,9 +211,10 @@ static int _make_vg_consistent(struct cmd_context *cmd, struct volume_group *vg)
/* Suspend lvs_changed */
init_partial(1);
if (!suspend_lvs(cmd, &lvs_changed)) {
stack;
init_partial(0);
vg_revert(vg);
return_0;
return 0;
}
init_partial(0);
}