summaryrefslogtreecommitdiff
path: root/tools/pvmove_poll.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2017-11-29 22:19:05 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2017-12-01 12:18:32 +0100
commitfbd8b456dbc963bbc306e5b3c643d0f67d3a2d6c (patch)
treea21c3ed65fe85063e2385bf53bd8d72d8e8be757 /tools/pvmove_poll.c
parent94d3878efb7cec344681bf4a2b28774ffebda3ba (diff)
downloadlvm2-fbd8b456dbc963bbc306e5b3c643d0f67d3a2d6c.tar.gz
pvmove: move code from tools to lib
Move code manipulating with locking flags into /lib part of lvm.
Diffstat (limited to 'tools/pvmove_poll.c')
-rw-r--r--tools/pvmove_poll.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/pvmove_poll.c b/tools/pvmove_poll.c
index f573eb93a..e50747cf4 100644
--- a/tools/pvmove_poll.c
+++ b/tools/pvmove_poll.c
@@ -52,7 +52,6 @@ static int _detach_pvmove_mirror(struct cmd_context *cmd,
{
uint32_t mimage_to_remove = 0;
struct dm_list lvs_completed;
- struct lv_list *lvl;
/* Update metadata to remove mirror segments and break dependencies */
dm_list_init(&lvs_completed);
@@ -67,10 +66,6 @@ static int _detach_pvmove_mirror(struct cmd_context *cmd,
return_0;
}
- dm_list_iterate_items(lvl, &lvs_completed)
- /* FIXME Assumes only one pvmove at a time! */
- lvl->lv->status &= ~LOCKED;
-
return 1;
}