From 6b35c7eb9d8b34cd64e8380fd8b79a7b72434347 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Mon, 26 Nov 2001 15:31:46 +0000 Subject: [PATCH] LV create/extend prototype changes for striping --- lib/metadata/metadata.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/metadata/metadata.h b/lib/metadata/metadata.h index b3d077775..11f5e5745 100644 --- a/lib/metadata/metadata.h +++ b/lib/metadata/metadata.h @@ -73,7 +73,7 @@ struct stripe_segment { uint32_t pe_count; /* variable sized pe array */ - struct pe_specifier pes[1]; + struct pe_specifier pes[0]; }; struct cmd_context; @@ -111,7 +111,6 @@ struct logical_volume { uint32_t status; uint32_t read_ahead; - uint32_t stripes; uint64_t size; uint32_t le_count; @@ -255,7 +254,10 @@ struct logical_volume *lv_create(const char *name, int lv_reduce(struct logical_volume *lv, uint32_t extents); int lv_extend(struct logical_volume *lv, - uint32_t extents, struct list *allocatable_pvs); + uint32_t stripes, + uint32_t stripe_size, + uint32_t extents, + struct list *allocatable_pvs); /* lv must be part of vg->lvs */ int lv_remove(struct volume_group *vg, struct logical_volume *lv);