diff --git a/WHATS_NEW b/WHATS_NEW index 0c6caa401..81ed96034 100644 --- 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. diff --git a/lib/mirror/mirrored.c b/lib/mirror/mirrored.c index 45a47bd40..dcd973647 100644 --- a/lib/mirror/mirrored.c +++ b/lib/mirror/mirrored.c @@ -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(" "); }