master - display: show monitoring status
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=91a8e4a3d8198990ddffcfa9916ba22dcb0c033d Commit: 91a8e4a3d8198990ddffcfa9916ba22dcb0c033d Parent: e6168b8d70935004e38bc2f1ac9d57cc0bf6df10 Author: Zdenek Kabelac <[email protected]> AuthorDate: Mon Apr 28 11:53:56 2014 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Apr 28 12:39:03 2014 +0200
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(+), 0 deletions(-)
WHATS_NEW +1 -0
@@ -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.
lib/display/display.c +4 -0
@@ -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); }