mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
raid: add missing vg_revert
After failing vg_write() and suspend_lv() there was missing vg_revert() call.
This commit is contained in:
parent
dd1fa0e808
commit
569184a3bb
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.112 -
|
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.
|
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.
|
||||||
|
@ -938,6 +938,7 @@ static int _raid_remove_images(struct logical_volume *lv,
|
|||||||
if (!suspend_lv(lv->vg->cmd, lv)) {
|
if (!suspend_lv(lv->vg->cmd, lv)) {
|
||||||
log_error("Failed to suspend %s/%s before committing changes",
|
log_error("Failed to suspend %s/%s before committing changes",
|
||||||
lv->vg->name, lv->name);
|
lv->vg->name, lv->name);
|
||||||
|
vg_revert(lv->vg);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1113,6 +1114,7 @@ int lv_raid_split(struct logical_volume *lv, const char *split_name,
|
|||||||
if (!suspend_lv(cmd, lv)) {
|
if (!suspend_lv(cmd, lv)) {
|
||||||
log_error("Failed to suspend %s/%s before committing changes",
|
log_error("Failed to suspend %s/%s before committing changes",
|
||||||
lv->vg->name, lv->name);
|
lv->vg->name, lv->name);
|
||||||
|
vg_revert(lv->vg);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user