From e6168b8d70935004e38bc2f1ac9d57cc0bf6df10 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 28 Apr 2014 11:19:51 +0200 Subject: [PATCH] display: use Virtual for virtual LV Emphesize virtual extents for virtual LVs and for those use 'Virtual extents' instead of 'Logical extents', so it's immeditatelly visible, which extents do have straighforward physical backend. --- WHATS_NEW | 1 + lib/display/display.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index 3f879c9bd..cd649dac7 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.107 - ================================== + Display virtual extents for virtual LVs in 'lvdisplay --maps'. Make vgsplit fail cleanly when not all PVs are specified for RAID 4/5/6. Make vgsplit work on mirrors with logs that share PVs with images. Use devices/ignore_suspended_devices=0 by default if not defined in lvm.conf. diff --git a/lib/display/display.c b/lib/display/display.c index c93b2b350..a34d94764 100644 --- a/lib/display/display.c +++ b/lib/display/display.c @@ -661,7 +661,8 @@ int lvdisplay_segments(const struct logical_volume *lv) log_print("--- Segments ---"); dm_list_iterate_items(seg, &lv->segments) { - log_print("Logical extent %u to %u:", + log_print("%s extents %u to %u:", + lv_is_virtual(lv) ? "Virtual" : "Logical", seg->le, seg->le + seg->len - 1); log_print(" Type\t\t%s", seg->segtype->ops->name(seg));