From 77712b1ecb44ece6fc71baa123bb1d09d597ec1e Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Fri, 25 Jan 2002 20:21:13 +0000 Subject: 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? --- lib/format_text/import.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/format_text/import.c') diff --git a/lib/format_text/import.c b/lib/format_text/import.c index de8795b9..6066ae05 100644 --- a/lib/format_text/import.c +++ b/lib/format_text/import.c @@ -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; -- cgit