summaryrefslogtreecommitdiff
path: root/tools/pvmove_poll.h
Commit message (Collapse)AuthorAgeFilesLines
* doc: change fsf addressZdenek Kabelac2016-01-211-1/+1
| | | | | Hmm rpmlint suggest fsf is using a different address these days, so lets keep it up-to-date
* polldaemon: refactor polling interfacesOndrej Kozina2015-05-051-9/+0
| | | | | | | | | | | | | | | Routines responsible for polling of in-progress pvmove, snapshot merge or mirror conversion each used custom lookup functions to find vg and lv involved in polling. Especially pvmove used pvname to lookup pvmove in-progress. The future lvmpolld will poll each operation by vg/lv name (internally by lvid). Also there're plans to make pvmove able to move non-overlaping ranges of extents instead of single PVs as of now. This would also require to identify the opertion in different manner. The poll_operation_id structure together with daemon_parms structure they identify unambiguously the polling task.
* polldaemon: get get_copy_vg ready for refactoringOndrej Kozina2015-05-051-1/+5
| | | | | with refactored code we take some VG locks as read-only. Make the poll_get_copy_vg ready for the change.
* pvmove: split pvmove_update_metadata functionOndrej Kozina2015-04-011-10/+0
| | | | | | | | | | | | | | | | | | | 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.
* pvmove: move poll code in before refactoringOndrej Kozina2015-04-011-0/+45
This commit has no impact on functionality. Code required to be visible outside pvmove.c is just moved into new file pvmove_poll.c and some calls are made non-static and declared in new header file pvmove.h