]> sourceware.org Git - lvm2.git/commitdiff
Fix lvdisplay to show all mirror destinations.
authorAlasdair Kergon <agk@redhat.com>
Wed, 26 Oct 2005 16:12:36 +0000 (16:12 +0000)
committerAlasdair Kergon <agk@redhat.com>
Wed, 26 Oct 2005 16:12:36 +0000 (16:12 +0000)
WHATS_NEW
lib/mirror/mirrored.c

index 0c6caa401bd5c4d58902a74e9b75f79c49bef536..81ed96034cfe31112e6026b5c8d53d954d0454e8 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.00 - 
 ===================================
+  Fix lvdisplay to show all mirror destinations.
   Replacement suspend code using libdevmapper dependency tree.
   Add DEFS to make.tmpl.
   Use dm_is_dm_major instead of local copy.
index 45a47bd4037f636a9eaba6ec95ae4bd3a18dfcb9..dcd9736476e015aa25b4f3d6a695e7e6f5bbf479 100644 (file)
@@ -44,6 +44,7 @@ static const char *_name(const struct lv_segment *seg)
 static void _display(const struct lv_segment *seg)
 {
        const char *size;
+       uint32_t s;
 
        log_print("  Mirrors\t\t%u", seg->area_count);
        log_print("  Mirror size\t\t%u", seg->area_len);
@@ -59,8 +60,9 @@ static void _display(const struct lv_segment *seg)
 
        log_print("  Mirror original:");
        display_stripe(seg, 0, "    ");
-       log_print("  Mirror destination:");
-       display_stripe(seg, 1, "    ");
+       log_print("  Mirror destinations:");
+       for (s = 1; s < seg->area_count; s++)
+               display_stripe(seg, s, "    ");
        log_print(" ");
 }
 
This page took 0.040731 seconds and 5 git commands to generate.