1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Set pv->pe_size when reading in text-file backup.

Otherwise LVM1 decides the PV structure is corrupt.
But do we need to keep both pv->pe_size and vg->extent_size
in internal metadata or can we generate pvd->pe_size when writing out
a PV that belongs to a VG?
This commit is contained in:
Alasdair Kergon 2002-01-25 20:21:13 +00:00
parent b5e9efd3db
commit 77712b1ecb

View File

@ -128,6 +128,7 @@ static int _read_pv(struct pool *mem,
vg->extent_count += pv->pe_count;
vg->free_count += pv->pe_count;
pv->pe_size = vg->extent_size;
pv->size = pv->pe_size * (uint64_t) pv->pe_count;
pv->pe_allocated = 0;