diff options
author | Ondrej Kozina <okozina@redhat.com> | 2015-03-16 20:23:58 +0100 |
---|---|---|
committer | Ondrej Kozina <okozina@redhat.com> | 2015-04-01 20:41:03 +0200 |
commit | 65623b63a20a221b48dfd87455dc77f5ac0c6bf4 (patch) | |
tree | c663251b6b2fe31e653498ef5059481423b6b415 /tools/pvmove_poll.h | |
parent | 5190f566055ab4584772b1288fd8cbf69565eb4a (diff) | |
download | lvm2-65623b63a20a221b48dfd87455dc77f5ac0c6bf4.tar.gz |
pvmove: split pvmove_update_metadata function
So far pvmove_update_metadata (originaly _update_metadata) was
used for both initial and subsequent metadata updates during polling.
With a new polldaemon (lvmpolld) all operations that require polling
have to be split in two parts: The initiating one and the polling one.
The later step will be used from lvm command spawned by lvmpolld to
monitor and advance the mirror on next segment if required.
1) The initiation part is _update_metadata in pvmove.c which performs
only the first update, setting up the pvmove itself in metadata.
2) pvmove_update_metadata in pvmove_poll.c now handles all other
subsequent metadata updates except the last one.
Due to the split we could remove some code. Also some functions were
moved back to pvmove.c as they were suited for initialisation of pvmove
only.
Diffstat (limited to 'tools/pvmove_poll.h')
-rw-r--r-- | tools/pvmove_poll.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tools/pvmove_poll.h b/tools/pvmove_poll.h index 2fee23a9c..776920c01 100644 --- a/tools/pvmove_poll.h +++ b/tools/pvmove_poll.h @@ -15,23 +15,13 @@ #ifndef _LVM_PVMOVE_H #define _LVM_PVMOVE_H -#define PVMOVE_FIRST_TIME 0x00000001 /* Called for first time */ -#define PVMOVE_EXCLUSIVE 0x00000002 /* Require exclusive LV */ - struct cmd_context; struct dm_list; struct logical_volume; struct volume_group; -int pvmove_target_present(struct cmd_context *cmd, int clustered); - -unsigned pvmove_is_exclusive(struct cmd_context *cmd, struct volume_group *vg); - struct volume_group *get_vg(struct cmd_context *cmd, const char *vgname); -int _activate_lv(struct cmd_context *cmd, struct logical_volume *lv_mirr, - unsigned exclusive); - int pvmove_update_metadata(struct cmd_context *cmd, struct volume_group *vg, struct logical_volume *lv_mirr, struct dm_list *lvs_changed, unsigned flags); |