mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
metadata: Fix tracking of read_status flags in _vg_make_handle.
This commit is contained in:
parent
3ed7f78ff4
commit
6d2604f026
@ -874,12 +874,12 @@ static struct volume_group *_vg_make_handle(struct cmd_context *cmd,
|
|||||||
if (!vg && !(vg = alloc_vg("vg_make_handle", cmd, NULL)))
|
if (!vg && !(vg = alloc_vg("vg_make_handle", cmd, NULL)))
|
||||||
return_NULL;
|
return_NULL;
|
||||||
|
|
||||||
if (vg->fid && !_vg_update_vg_ondisk(vg))
|
|
||||||
vg->read_status |= FAILED_ALLOCATION;
|
|
||||||
|
|
||||||
if (vg->read_status != failure)
|
if (vg->read_status != failure)
|
||||||
vg->read_status = failure;
|
vg->read_status = failure;
|
||||||
|
|
||||||
|
if (vg->fid && !_vg_update_vg_ondisk(vg))
|
||||||
|
vg->read_status |= FAILED_ALLOCATION;
|
||||||
|
|
||||||
return vg;
|
return vg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user