summaryrefslogtreecommitdiff
path: root/lib/format_text/import_vsn1.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2005-05-03 17:28:23 +0000
committerAlasdair Kergon <agk@redhat.com>2005-05-03 17:28:23 +0000
commit15db9fcfbf2f3cdf141f11cc142c10787d82e20a (patch)
treefeab5b65e91aa76105f938f29715baa7e1543f9b /lib/format_text/import_vsn1.c
parent1d76599a94006cc22f51479d69b70f6d67704796 (diff)
downloadlvm2-15db9fcfbf2f3cdf141f11cc142c10787d82e20a.tar.gz
Reinstate full PV size when removing from VG.
Support loopfiles for testing. Complete the pv_segment support.
Diffstat (limited to 'lib/format_text/import_vsn1.c')
-rw-r--r--lib/format_text/import_vsn1.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/format_text/import_vsn1.c b/lib/format_text/import_vsn1.c
index 1d8eff078..b5221e04e 100644
--- a/lib/format_text/import_vsn1.c
+++ b/lib/format_text/import_vsn1.c
@@ -363,7 +363,10 @@ int text_import_areas(struct lv_segment *seg, const struct config_node *sn,
/* FIXME Cope if LV not yet read in */
if ((pv = hash_lookup(pv_hash, cv->v.str))) {
- set_lv_segment_area_pv(seg, s, pv, cv->next->v.i);
+ if (!set_lv_segment_area_pv(seg, s, pv, cv->next->v.i)) {
+ stack;
+ return 0;
+ }
/*
* Adjust extent counts in the pv and vg.
*/