diff options
Diffstat (limited to 'lib/format1/import-export.c')
-rw-r--r-- | lib/format1/import-export.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/format1/import-export.c b/lib/format1/import-export.c index 0fdb3e9f..a3d92328 100644 --- a/lib/format1/import-export.c +++ b/lib/format1/import-export.c @@ -26,6 +26,7 @@ #include "filter.h" #include "toolcontext.h" #include "segtype.h" +#include "pv_alloc.h" #include <time.h> @@ -89,6 +90,13 @@ int import_pv(struct pool *mem, struct device *dev, pv->pe_alloc_count = pvd->pe_allocated; list_init(&pv->tags); + list_init(&pv->segments); + list_init(&pv->free_segments); + + if (!alloc_pv_segment_whole_pv(mem, pv)) { + stack; + return 0; + } return 1; } |