diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2017-10-16 15:05:57 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2017-10-16 15:47:46 +0200 |
commit | 186a3da998b13505990809466f0e5708cfdd6c2a (patch) | |
tree | c1e8b135e5815a4b9e9f586c077e24cf6c259e35 | |
parent | 12aff591834a634fe536104736be1a863bddea12 (diff) | |
download | lvm2-186a3da998b13505990809466f0e5708cfdd6c2a.tar.gz |
thin: monitor also external origin
Add missing monitoring for external origin LVs and add -real suffix
for UUID used for monitoring of external origin.
-rw-r--r-- | WHATS_NEW | 1 | ||||
-rw-r--r-- | lib/activate/activate.c | 9 |
2 files changed, 9 insertions, 1 deletions
@@ -1,5 +1,6 @@ Version 2.02.176 - =================================== + Monitor external origin LVs. Remove the replicator code, including configure --with-replicators. Allow lvcreate --type mirror to work with 100%FREE. Improve selection of resource name for complex volume activation lock. diff --git a/lib/activate/activate.c b/lib/activate/activate.c index edbb451be..5542f8434 100644 --- a/lib/activate/activate.c +++ b/lib/activate/activate.c @@ -1707,7 +1707,7 @@ static char *_build_target_uuid(struct cmd_context *cmd, const struct logical_vo if (lv_is_thin_pool(lv)) 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". */ else layer = NULL; @@ -1949,6 +1949,13 @@ int monitor_dev_for_events(struct cmd_context *cmd, const struct logical_volume 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 && !monitor_dev_for_events(cmd, seg->metadata_lv, NULL, monitor)) { stack; |