mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-10 05:18:36 +03:00
Free text metadata buffer after a failure writing it.
This commit is contained in:
parent
8cac933c71
commit
8c317baf19
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.41 -
|
Version 2.02.41 -
|
||||||
=====================================
|
=====================================
|
||||||
|
Free text metadata buffer after a failure writing it.
|
||||||
Fix misleading error message when there is no allocatable extents in VG.
|
Fix misleading error message when there is no allocatable extents in VG.
|
||||||
Fix handling of PVs which reappeared with old metadata version.
|
Fix handling of PVs which reappeared with old metadata version.
|
||||||
Fix mirror DSO to call vgreduce with proper parameters.
|
Fix mirror DSO to call vgreduce with proper parameters.
|
||||||
|
@ -597,8 +597,15 @@ static int _vg_write_raw(struct format_instance *fid, struct volume_group *vg,
|
|||||||
r = 1;
|
r = 1;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
if (!r && !dev_close(mdac->area.dev))
|
if (!r) {
|
||||||
stack;
|
if (!dev_close(mdac->area.dev))
|
||||||
|
stack;
|
||||||
|
|
||||||
|
if (fidtc->raw_metadata_buf) {
|
||||||
|
dm_free(fidtc->raw_metadata_buf);
|
||||||
|
fidtc->raw_metadata_buf = NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user