summaryrefslogtreecommitdiff
path: root/lib/mirror
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2019-03-22 12:07:31 -0500
committerDavid Teigland <teigland@redhat.com>2019-04-04 13:21:38 -0500
commitc33770c02d9d6b9deddbc1b3c52c77c1a17ea246 (patch)
tree669587fc57bb32ede9f5447edf142346a789ef1a /lib/mirror
parent50800e33d56176e034970f93c5f87f59ecd569db (diff)
downloadlvm2-c33770c02d9d6b9deddbc1b3c52c77c1a17ea246.tar.gz
lvmlockd: do not allow mirror LV to be activated shared
This reverts 518a8e8cfbb672c2bf5e3455f1fe7cd8d94eb5b0 "lvmlockd: activate mirror LVs in shared mode with cmirrord" because while activating a mirror LV with cmirrord worked, changes to the active cmirror did not work.
Diffstat (limited to 'lib/mirror')
-rw-r--r--lib/mirror/mirrored.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/mirror/mirrored.c b/lib/mirror/mirrored.c
index 7fa8714eb..aaaa0b8f2 100644
--- a/lib/mirror/mirrored.c
+++ b/lib/mirror/mirrored.c
@@ -278,15 +278,6 @@ static int _add_log(struct dm_pool *mem, struct lv_segment *seg,
char *log_dlid = NULL;
uint32_t log_flags = 0;
- if (seg->lv->vg->lock_type && !strcmp(seg->lv->vg->lock_type, "dlm")) {
- /*
- * If shared lock was used due to -asy, then we set clustered
- * to use a clustered mirror log with cmirrod.
- */
- if (seg->lv->vg->cmd->lockd_lv_sh)
- clustered = 1;
- }
-
if (seg->log_lv) {
/* If disk log, use its UUID */
if (!(log_dlid = build_dm_uuid(mem, seg->log_lv, NULL))) {