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/metadata/pv_alloc.h | |
parent | 1d76599a94006cc22f51479d69b70f6d67704796 (diff) | |
download | lvm2-15db9fcfbf2f3cdf141f11cc142c10787d82e20a.tar.gz lvm2-15db9fcfbf2f3cdf141f11cc142c10787d82e20a.tar.xz lvm2-15db9fcfbf2f3cdf141f11cc142c10787d82e20a.zip |
Reinstate full PV size when removing from VG.
Support loopfiles for testing.
Complete the pv_segment support.
Diffstat (limited to 'lib/metadata/pv_alloc.h')
-rw-r--r-- | lib/metadata/pv_alloc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/metadata/pv_alloc.h b/lib/metadata/pv_alloc.h index 88b9a56f..655f2238 100644 --- a/lib/metadata/pv_alloc.h +++ b/lib/metadata/pv_alloc.h @@ -18,5 +18,13 @@ int alloc_pv_segment_whole_pv(struct pool *mem, struct physical_volume *pv); int peg_dup(struct pool *mem, struct list *peg_new, struct list *peg_free_new, struct list *peg_old); +struct pv_segment *assign_peg_to_lvseg(struct physical_volume *pv, uint32_t pe, + uint32_t area_len, + struct lv_segment *seg, + uint32_t area_num); +int pv_split_segment(struct physical_volume *pv, uint32_t pe); +int release_pv_segment(struct pv_segment *peg, uint32_t new_area_len); +int check_pv_segments(struct volume_group *vg); +void merge_pv_segments(struct pv_segment *peg1, struct pv_segment *peg2); #endif |