summaryrefslogtreecommitdiff
path: root/tools/pvmove.c
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2019-10-11 11:12:11 -0500
committerDavid Teigland <teigland@redhat.com>2019-10-11 11:31:42 -0500
commitfe16d296b058333fddd5102afbebf95a18f85468 (patch)
treefe952c4b9b8da199026529069bfad840f9d25b6f /tools/pvmove.c
parentdf26b73b8e4355df7f6d4d664edad2b86991b352 (diff)
downloadlvm2-fe16d296b058333fddd5102afbebf95a18f85468.tar.gz
pvmove: remove some cmirror related code
which is no longer used
Diffstat (limited to 'tools/pvmove.c')
-rw-r--r--tools/pvmove.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/tools/pvmove.c b/tools/pvmove.c
index ebbdb4c16..674decfa8 100644
--- a/tools/pvmove.c
+++ b/tools/pvmove.c
@@ -40,27 +40,15 @@ struct pvmove_params {
static int _pvmove_target_present(struct cmd_context *cmd, int clustered)
{
const struct segment_type *segtype;
- unsigned attr = 0;
int found = 1;
- static int _clustered_found = -1;
-
- if (clustered && _clustered_found >= 0)
- return _clustered_found;
if (!(segtype = get_segtype_from_string(cmd, SEG_TYPE_NAME_MIRROR)))
return_0;
if (activation() && segtype->ops->target_present &&
- !segtype->ops->target_present(cmd, NULL, clustered ? &attr : NULL))
+ !segtype->ops->target_present(cmd, NULL, NULL))
found = 0;
- if (activation() && clustered) {
- if (found && (attr & MIRROR_LOG_CLUSTERED))
- _clustered_found = found = 1;
- else
- _clustered_found = found = 0;
- }
-
return found;
}