1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-04 09:18:36 +03:00

snapshot: add missing vg_revert

Error path missed vg_revert call.
This commit is contained in:
Zdenek Kabelac 2014-09-21 01:10:06 +02:00
parent 736f40134b
commit 29970b0c17
2 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,7 @@ Version 2.02.112 -
Don't leak alloc_handle on raid target error path. Don't leak alloc_handle on raid target error path.
Properly validate raid leg names. Properly validate raid leg names.
Archive metadata before starting their modification in raid target. Archive metadata before starting their modification in raid target.
Add missing vg_revert in suspend_lv() error path in raid target. Add missing vg_revert() in suspend_lv() raid and snapshot error path.
Add missing backup of lvm2 metadata after some raid modifications. Add missing backup of lvm2 metadata after some raid modifications.
Use vg memory pool for extent allocation. Use vg memory pool for extent allocation.
Add allocation/physical_extent_size config option for default PE size of VGs. Add allocation/physical_extent_size config option for default PE size of VGs.

View File

@ -325,6 +325,7 @@ int vg_remove_snapshot(struct logical_volume *cow)
if (is_origin_active && !suspend_lv(origin->vg->cmd, origin)) { if (is_origin_active && !suspend_lv(origin->vg->cmd, origin)) {
log_error("Failed to refresh %s without snapshot.", log_error("Failed to refresh %s without snapshot.",
origin->name); origin->name);
vg_revert(origin->vg);
return 0; return 0;
} }
if (!vg_commit(origin->vg)) if (!vg_commit(origin->vg))