1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-10-16 23:33:16 +03:00

o Added lvextend

o Full signed arguments to lvreduce/lvextend
o Consistent lv_number/pe map use
o Populate pv->pe_allocated
o Fixes for allocation/writing of multiple LVs
This commit is contained in:
Alasdair Kergon
2001-11-09 22:01:04 +00:00
parent 44e51ea5fa
commit 02a70e5667
14 changed files with 365 additions and 92 deletions

View File

@@ -196,6 +196,7 @@ static int _read_lvs(struct disk_list *data)
unsigned long pos;
struct lvd_list *ll;
/* FIXME May be gaps - use lv_max */
for(i = 0; i < data->vgd.lv_cur; i++) {
pos = data->pvd.lv_on_disk.base + (i * sizeof(struct lv_disk));
ll = pool_alloc(data->mem, sizeof(*ll));
@@ -384,9 +385,9 @@ static int _write_lvs(struct disk_list *data)
struct list *lvh;
unsigned long pos;
pos = data->pvd.lv_on_disk.base;
list_iterate(lvh, &data->lvds) {
struct lvd_list *ll = list_item(lvh, struct lvd_list);
pos = data->pvd.lv_on_disk.base;
if (!_write_lvd(data->dev, pos, &ll->lvd))
fail;