diff options
author | Ondrej Kozina <okozina@redhat.com> | 2015-05-04 14:32:32 +0200 |
---|---|---|
committer | Ondrej Kozina <okozina@redhat.com> | 2015-05-04 16:56:28 +0200 |
commit | 079895b8bee452c36bf1952df7e40d508ff299eb (patch) | |
tree | 2ac63f1f2a37211517f50ab8153d739a43bec333 /tools/lvconvert_poll.c | |
parent | 7a5a4f952e567ebb32e61414db62292eab81b6c7 (diff) | |
download | lvm2-079895b8bee452c36bf1952df7e40d508ff299eb.tar.gz |
polldaemon: move lvconvert_get_copy_vg code
Moving lvconvert_get_copy_vg to polldaemon (poll_get_copy_vg).
Clear move and rename.
Diffstat (limited to 'tools/lvconvert_poll.c')
-rw-r--r-- | tools/lvconvert_poll.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tools/lvconvert_poll.c b/tools/lvconvert_poll.c index 4745d0645..b6ee980b3 100644 --- a/tools/lvconvert_poll.c +++ b/tools/lvconvert_poll.c @@ -16,20 +16,6 @@ #include "lvconvert_poll.h" #include "tools.h" -struct volume_group *lvconvert_get_copy_vg(struct cmd_context *cmd, - const char *name, - const char *uuid __attribute__((unused))) -{ - dev_close_all(); - - if (name && !strchr(name, '/')) - return vg_read_for_update(cmd, name, NULL, 0); - - /* 'name' is the full LV name; must extract_vgname() */ - return vg_read_for_update(cmd, extract_vgname(cmd, name), - NULL, 0); -} - struct logical_volume *lvconvert_get_copy_lv(struct cmd_context *cmd __attribute__((unused)), struct volume_group *vg, const char *name, |