diff options
author | Alasdair Kergon <agk@redhat.com> | 2005-05-03 17:28:23 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2005-05-03 17:28:23 +0000 |
commit | 15db9fcfbf2f3cdf141f11cc142c10787d82e20a (patch) | |
tree | feab5b65e91aa76105f938f29715baa7e1543f9b /lib/format_text/import_vsn1.c | |
parent | 1d76599a94006cc22f51479d69b70f6d67704796 (diff) | |
download | lvm2-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.c | 5 |
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. */ |