[lvm-devel] Re: [PATCH 3/4] Define new periodic polling method: poll_progress

Mike Snitzer snitzer at redhat.com
Tue Sep 29 22:09:43 UTC 2009


On Tue, Sep 29 2009 at 11:22am -0400,
Mike Snitzer <snitzer at redhat.com> wrote:

> Define new polling method poll_progress that is called periodically. The method
> can return:
> 0 --- error
> PROGRESS_TRY_AGAIN --- should be called again after specified interval
> PROGRESS_UPDATE_METADATA --- should call update_metadata method and continue
> 			     polling
> PROGRESS_FINISHED --- should call finish_copy and exit polling
> 
> The hard-coded mirror-specific code in polldaemon was moved to function
> poll_mirror_progress. The rest of the polldaemon is mirror-free so it can be
> used for merging snapshots as well.

Updated patch is available here:
http://people.redhat.com/msnitzer/patches/snapshot-merge/lvm2/LVM2-2.02.54/lvm-poll-progress-method.patch




More information about the lvm-devel mailing list