diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2014-09-11 19:58:28 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2014-09-12 13:45:14 +0200 |
commit | 569184a3bb124f94bc79c1a1d042f686270e7864 (patch) | |
tree | 54b6b69aeb057b903e2b7a9955f1fb846e837366 | |
parent | dd1fa0e808918b51a690e26de8a8cfff6c307854 (diff) | |
download | lvm2-569184a3bb124f94bc79c1a1d042f686270e7864.tar.gz |
raid: add missing vg_revert
After failing vg_write() and suspend_lv() there was missing vg_revert() call.
-rw-r--r-- | WHATS_NEW | 1 | ||||
-rw-r--r-- | lib/metadata/raid_manip.c | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -1,5 +1,6 @@ Version 2.02.112 - ===================================== + Add missing vg_revert in suspend_lv() error path in raid target. Add missing backup of lvm2 metadata after some raid modifications. Use vg memory pool for extent allocation. Add allocation/physical_extent_size config option for default PE size of VGs. diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c index 91cc0dd88..989244cf3 100644 --- a/lib/metadata/raid_manip.c +++ b/lib/metadata/raid_manip.c @@ -938,6 +938,7 @@ static int _raid_remove_images(struct logical_volume *lv, if (!suspend_lv(lv->vg->cmd, lv)) { log_error("Failed to suspend %s/%s before committing changes", lv->vg->name, lv->name); + vg_revert(lv->vg); return 0; } @@ -1113,6 +1114,7 @@ int lv_raid_split(struct logical_volume *lv, const char *split_name, if (!suspend_lv(cmd, lv)) { log_error("Failed to suspend %s/%s before committing changes", lv->vg->name, lv->name); + vg_revert(lv->vg); return 0; } |