diff options
author | Alasdair Kergon <agk@redhat.com> | 2006-10-23 15:54:51 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2006-10-23 15:54:51 +0000 |
commit | 2bdc8e1252ca74c3ab6aa51bbdf5c7c86e6afdbd (patch) | |
tree | 504804e0048387ce2f475a92e195640c00538ecd /lib/metadata/pv_map.h | |
parent | 77fcc2076ac2f20a072e393d0617af3e12c52ca5 (diff) | |
download | lvm2-2bdc8e1252ca74c3ab6aa51bbdf5c7c86e6afdbd.tar.gz lvm2-2bdc8e1252ca74c3ab6aa51bbdf5c7c86e6afdbd.tar.xz lvm2-2bdc8e1252ca74c3ab6aa51bbdf5c7c86e6afdbd.zip |
Perform high-level free space check before each allocation attempt.
Diffstat (limited to 'lib/metadata/pv_map.h')
-rw-r--r-- | lib/metadata/pv_map.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/metadata/pv_map.h b/lib/metadata/pv_map.h index 431eda93..a5ade282 100644 --- a/lib/metadata/pv_map.h +++ b/lib/metadata/pv_map.h @@ -37,6 +37,7 @@ struct pv_area { struct pv_map { struct physical_volume *pv; struct list areas; /* struct pv_areas */ + uint32_t pe_count; /* Total number of PEs */ struct list list; }; @@ -49,4 +50,6 @@ struct list *create_pv_maps(struct dm_pool *mem, struct volume_group *vg, void consume_pv_area(struct pv_area *area, uint32_t to_go); +uint32_t pv_maps_size(struct list *pvms); + #endif |