mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
thin: monitor also external origin
Add missing monitoring for external origin LVs and add -real suffix for UUID used for monitoring of external origin.
This commit is contained in:
parent
12aff59183
commit
186a3da998
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.176 -
|
Version 2.02.176 -
|
||||||
===================================
|
===================================
|
||||||
|
Monitor external origin LVs.
|
||||||
Remove the replicator code, including configure --with-replicators.
|
Remove the replicator code, including configure --with-replicators.
|
||||||
Allow lvcreate --type mirror to work with 100%FREE.
|
Allow lvcreate --type mirror to work with 100%FREE.
|
||||||
Improve selection of resource name for complex volume activation lock.
|
Improve selection of resource name for complex volume activation lock.
|
||||||
|
@ -1707,7 +1707,7 @@ static char *_build_target_uuid(struct cmd_context *cmd, const struct logical_vo
|
|||||||
|
|
||||||
if (lv_is_thin_pool(lv))
|
if (lv_is_thin_pool(lv))
|
||||||
layer = "tpool"; /* Monitor "tpool" for the "thin pool". */
|
layer = "tpool"; /* Monitor "tpool" for the "thin pool". */
|
||||||
else if (lv_is_origin(lv))
|
else if (lv_is_origin(lv) || lv_is_external_origin(lv))
|
||||||
layer = "real"; /* Monitor "real" for "snapshot-origin". */
|
layer = "real"; /* Monitor "real" for "snapshot-origin". */
|
||||||
else
|
else
|
||||||
layer = NULL;
|
layer = NULL;
|
||||||
@ -1949,6 +1949,13 @@ int monitor_dev_for_events(struct cmd_context *cmd, const struct logical_volume
|
|||||||
r = 0;
|
r = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (seg->external_lv &&
|
||||||
|
!monitor_dev_for_events(cmd, seg->external_lv,
|
||||||
|
(!monitor) ? laopts : NULL, monitor)) {
|
||||||
|
stack;
|
||||||
|
r = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (seg->metadata_lv &&
|
if (seg->metadata_lv &&
|
||||||
!monitor_dev_for_events(cmd, seg->metadata_lv, NULL, monitor)) {
|
!monitor_dev_for_events(cmd, seg->metadata_lv, NULL, monitor)) {
|
||||||
stack;
|
stack;
|
||||||
|
Loading…
Reference in New Issue
Block a user