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

Add missing deactivation after activation failure in lvcreate -Zy.

This commit is contained in:
Alasdair Kergon 2008-06-05 13:38:30 +00:00
parent e4b34bfad0
commit bdf8c02f80
2 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ Version 2.02.38 -
Version 2.02.37 -
=================================
Add missing deactivation after activation failure in lvcreate -Zy.
When activating, if precommitted metadata is still cached, assume it's live.
When removing LV symlinks, skip any where the VG name is not determined.
Drop metadata cache if update fails in vg_revert or vg_commit.

View File

@ -801,7 +801,7 @@ static int _lvcreate(struct cmd_context *cmd, struct volume_group *vg,
if (lp->zero) {
log_error("Aborting. Failed to activate new LV to wipe "
"the start of it.");
goto revert_new_lv;
goto deactivate_and_revert_new_lv;
}
log_error("Failed to activate new LV.");
return 0;