mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lv: followup seg_monitor reporting
With 3596558861
it's been introduced
a more fine grained description.
However 'disabled' might be actually more confusing then empty field,
so keep only the info about 'not enabled'aka dmevend is not allowed
to monitor LV which otherwise could be monitored.
This commit is contained in:
parent
9abcf5cb48
commit
00b5d7b037
@ -313,7 +313,7 @@ char *lvseg_monitor_dup(struct dm_pool *mem, const struct lv_segment *seg)
|
|||||||
// 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 ||
|
if (!segm->segtype->ops ||
|
||||||
!segm->segtype->ops->target_monitored)
|
!segm->segtype->ops->target_monitored)
|
||||||
s = "disabled";
|
/* Nothing to do, monitoring not supported */;
|
||||||
else if (dmeventd_monitor_mode() != 1)
|
else if (dmeventd_monitor_mode() != 1)
|
||||||
s = "not enabled";
|
s = "not enabled";
|
||||||
else if (lv_is_cow_covering_origin(seg->lv))
|
else if (lv_is_cow_covering_origin(seg->lv))
|
||||||
|
@ -196,7 +196,7 @@ sel lv 'lv_minor=undef' vol1 vol2 abc orig snap
|
|||||||
sel lv 'lv_minor=unknown' vol1 vol2 abc orig snap
|
sel lv 'lv_minor=unknown' vol1 vol2 abc orig snap
|
||||||
sel lv 'lv_minor=254' xyz
|
sel lv 'lv_minor=254' xyz
|
||||||
# also test synonym for string field type
|
# also test synonym for string field type
|
||||||
sel lv 'seg_monitor=undefined' vol1 vol2 abc abc orig snap xyz
|
sel lv 'seg_monitor=undefined' vol1 vol2 abc abc orig xyz
|
||||||
|
|
||||||
# if size unit not spefied, the 'm' (MiB) unit is used by default
|
# if size unit not spefied, the 'm' (MiB) unit is used by default
|
||||||
sel lv 'lv_size=8' vol1
|
sel lv 'lv_size=8' vol1
|
||||||
|
Loading…
Reference in New Issue
Block a user