diff options
author | Alasdair Kergon <agk@redhat.com> | 2002-01-25 20:21:13 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2002-01-25 20:21:13 +0000 |
commit | 77712b1ecb44ece6fc71baa123bb1d09d597ec1e (patch) | |
tree | 78ce024be309e8932fa4b1ad13e47ed5c91d9560 /lib/format_text/import.c | |
parent | b5e9efd3db5b596ae9b48b41de1a833c235c389a (diff) | |
download | lvm2-77712b1ecb44ece6fc71baa123bb1d09d597ec1e.tar.gz lvm2-77712b1ecb44ece6fc71baa123bb1d09d597ec1e.tar.xz lvm2-77712b1ecb44ece6fc71baa123bb1d09d597ec1e.zip |
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?
Diffstat (limited to 'lib/format_text/import.c')
-rw-r--r-- | lib/format_text/import.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |