From f95627cf8ab40c8f7b460d9fb254cdf7c645b4a1 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Mon, 26 Nov 2001 16:18:48 +0000 Subject: [PATCH] o More metadata changes. --- lib/metadata/metadata.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/lib/metadata/metadata.h b/lib/metadata/metadata.h index 11f5e5745..72f624c27 100644 --- a/lib/metadata/metadata.h +++ b/lib/metadata/metadata.h @@ -63,17 +63,20 @@ struct physical_volume { uint32_t pe_allocated; }; -struct pe_specifier { +struct pv_area { struct physical_volume *pv; - uint32_t pe; + uint32_t start; /* in extents */ + uint32_t len; /* in extents */ }; struct stripe_segment { - uint32_t chunk_size; - uint32_t pe_count; + struct list list; - /* variable sized pe array */ - struct pe_specifier pes[0]; + uint32_t chunk_size; + uint32_t stripes; + + /* There will be one pv_area for each stripe */ + struct pv_area areas[0]; }; struct cmd_context; @@ -116,8 +119,7 @@ struct logical_volume { uint32_t le_count; /* the segment array */ - uint32_t segment_count; - struct stripe_segment **segments; + struct list segments; }; struct name_list {