1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

display: check for dmeventd support

When quering for dmeventd monitoring status, check first
if lvm2 is configured to monitor to avoid unwanted start
of dmeventd process for answering monitoring status.
This commit is contained in:
Zdenek Kabelac 2014-04-30 10:13:35 +02:00
parent b1f765d72a
commit 517b002648
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.107 - Version 2.02.107 -
================================== ==================================
Don't start dmeventd checking seg_monitor and monitoring is disabled.
Catch CTRL-c during pvremove prompts. Catch CTRL-c during pvremove prompts.
Show correct availability status for snapshot origin in lvscan. Show correct availability status for snapshot origin in lvscan.
Move segment thin pool/volume info into segment display 'lvdisplay --maps'. Move segment thin pool/volume info into segment display 'lvdisplay --maps'.

View File

@ -146,7 +146,8 @@ char *lvseg_monitor_dup(struct dm_pool *mem, const struct lv_segment *seg)
segm = first_seg(seg->log_lv); segm = first_seg(seg->log_lv);
// log_debug("Query LV:%s mon:%s segm:%s tgtm:%p segmon:%d statusm:%d", seg->lv->name, segm->lv->name, segm->segtype->name, segm->segtype->ops->target_monitored, seg_monitored(segm), (int)(segm->status & PVMOVE)); // log_debug("Query LV:%s mon:%s segm:%s tgtm:%p segmon:%d statusm:%d", seg->lv->name, segm->lv->name, segm->segtype->name, segm->segtype->ops->target_monitored, seg_monitored(segm), (int)(segm->status & PVMOVE));
if (!segm->segtype->ops->target_monitored) if ((dmeventd_monitor_mode() != 1) ||
!segm->segtype->ops->target_monitored)
/* Nothing to do, monitoring not supported */; /* Nothing to do, monitoring not supported */;
else if (lv_is_cow_covering_origin(seg->lv)) else if (lv_is_cow_covering_origin(seg->lv))
/* Nothing to do, snapshot already covers origin */; /* Nothing to do, snapshot already covers origin */;