From 91a8e4a3d8198990ddffcfa9916ba22dcb0c033d Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 28 Apr 2014 11:53:56 +0200 Subject: [PATCH] display: show monitoring status When displaying segments (lvdisplay --maps) show monitoring status when supported by segment. --- WHATS_NEW | 1 + lib/display/display.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/WHATS_NEW b/WHATS_NEW index cd649dac7..de9ef23ab 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.107 - ================================== + Display monitoring status for monitorable segments in 'lvdisplay --maps'. 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. diff --git a/lib/display/display.c b/lib/display/display.c index a34d94764..d824150c5 100644 --- a/lib/display/display.c +++ b/lib/display/display.c @@ -667,6 +667,10 @@ int lvdisplay_segments(const struct logical_volume *lv) log_print(" Type\t\t%s", seg->segtype->ops->name(seg)); + if (seg->segtype->ops->target_monitored) + log_print(" Monitoring\t\t%s", + lvseg_monitor_dup(lv->vg->cmd->mem, seg)); + if (seg->segtype->ops->display) seg->segtype->ops->display(seg); }