1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-03 17:47:44 +03:00

A quick sanity check on vg_disk struct when read in. More checks needed.

This commit is contained in:
Alasdair Kergon 2004-05-11 17:18:42 +00:00
parent ec53c365a2
commit 1f7c47bcaf
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.00.16 -
=============================
A quick sanity check on vg_disk struct when read in. More checks needed.
Only include visible LVs in active/open counts.
Add virtual segment types, zero and error. A large sparse device can be
constructed as a writeable snapshot of a large zero segment.

View File

@ -233,6 +233,9 @@ static int _read_vgd(struct disk_list *data)
_xlate_vgd(vgd);
if ((vgd->lv_max > MAX_LV) || (vgd->pv_max > MAX_PV))
fail;
/* If UUID is missing, create one */
if (vgd->vg_uuid[0] == '\0')
uuid_from_num(vgd->vg_uuid, vgd->vg_number);