Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DNM] rbd-mirror: integrate with image sync state machine #8079

Closed
wants to merge 6 commits into from

Conversation

dillaman
Copy link

No description provided.

Jason Dillaman added 6 commits March 13, 2016 16:02
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
librbd ImageCtx's cannot be deleted from within the librbd thread.  This
state machine will perform the deletion from the rbd-mirror work queue
thread.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This state machine will open a local image and request the
exclusive lock.  If the open or lock fails, it will automatically
close the image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This state machine will handle the simple cases of creating
a local image from a remote image, registering to the remote
journal, and sync'ing the image contents.

There are several TODOs for future remaining work.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
These should be reimplemented using google mock instead of
virtual functions.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
@dillaman
Copy link
Author

@jdurgin This is only DNM since it includes the very large PR #7979

jdurgin added a commit that referenced this pull request Mar 15, 2016
rbd-mirror: integrate with image sync state machine

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
@jdurgin
Copy link
Member

jdurgin commented Mar 15, 2016

nice decomposition of sync into small state machines - makes it much easier to read. merged manually

@jdurgin jdurgin closed this Mar 15, 2016
@dillaman dillaman deleted the wip-15109 branch March 15, 2016 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants