From 22d1879c60a9077b507707d68a6dedc78a8ab6a9 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Wed, 16 Jan 2002 11:34:29 +0000 Subject: [PATCH] o Set the segment counter back to 1, for a new LV. --- lib/format_text/export.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/format_text/export.c b/lib/format_text/export.c index e04e436fb..1b463c2ae 100644 --- a/lib/format_text/export.c +++ b/lib/format_text/export.c @@ -329,7 +329,7 @@ static int _print_lvs(struct formatter *f, struct volume_group *vg) struct logical_volume *lv; struct stripe_segment *seg; char buffer[256]; - int seg_count = 1; + int seg_count; _out(f, "logical_volumes {"); _nl(f); @@ -352,6 +352,7 @@ static int _print_lvs(struct formatter *f, struct volume_group *vg) _out(f, "segment_count = %u", _count_segments(lv)); _nl(f); + seg_count = 1; list_iterate (segh, &lv->segments) { seg = list_item(segh, struct stripe_segment);