1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-10-23 23:33:15 +03:00

format_text: Fix precommitted segfault.

The code never mixes reads of committed and precommitted metadata,
so there's no need to attempt to set PRECOMMITTED when
*use_previous_vg is being set.
This commit is contained in:
Alasdair G Kergon
2015-03-19 11:14:47 +00:00
parent e4fa756385
commit a515a91fcc

View File

@@ -551,7 +551,7 @@ static struct volume_group *_vg_read_raw_area(struct format_instance *fid,
dev_name(area->dev),
area->start + rlocn->offset, rlocn->size);
if (precommitted)
if (vg && precommitted)
vg->status |= PRECOMMITTED;
out: