summaryrefslogtreecommitdiff
path: root/lib/mirror
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2018-06-05 10:47:01 -0500
committerDavid Teigland <teigland@redhat.com>2018-06-05 11:09:13 -0500
commit3e781ea446bb7ddc9a494cbba6b6104dd51c3910 (patch)
tree0cde55ce3fcc898f1d72aceb15c30963c3093d2a /lib/mirror
parent11384637fb57c0fdefe5940cf27285ebdcc1dbc6 (diff)
downloadlvm2-3e781ea446bb7ddc9a494cbba6b6104dd51c3910.tar.gz
Remove clvmd and associated code
More code reduction and simplification can follow.
Diffstat (limited to 'lib/mirror')
-rw-r--r--lib/mirror/mirrored.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/lib/mirror/mirrored.c b/lib/mirror/mirrored.c
index 6746b1a89..4110dec24 100644
--- a/lib/mirror/mirrored.c
+++ b/lib/mirror/mirrored.c
@@ -278,14 +278,7 @@ static int _add_log(struct dm_pool *mem, struct lv_segment *seg,
char *log_dlid = NULL;
uint32_t log_flags = 0;
- /*
- * Use clustered mirror log for non-exclusive activation
- * in clustered VG.
- */
- if (!laopts->exclusive && vg_is_clustered(seg->lv->vg))
- clustered = 1;
-
- else if (seg->lv->vg->lock_type && !strcmp(seg->lv->vg->lock_type, "dlm")) {
+ 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.
@@ -521,12 +514,6 @@ static int _mirrored_modules_needed(struct dm_pool *mem,
!list_segment_modules(mem, first_seg(seg->log_lv), modules))
return_0;
- if (vg_is_clustered(seg->lv->vg) &&
- !str_list_add(mem, modules, MODULE_NAME_CLUSTERED_MIRROR)) {
- log_error("cluster log string list allocation failed");
- return 0;
- }
-
if (!str_list_add(mem, modules, MODULE_NAME_MIRROR)) {
log_error("mirror string list allocation failed");
return 0;