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

rbd: add ReadIterate implementing rbd_read_iterate2 #624

Closed
wants to merge 3 commits into from

Conversation

phlogistonjohn
Copy link
Collaborator

This is incomplete/experimental.

Checklist

  • Added tests for features and functional changes
  • Public functions and types are documented
  • Standard formatting is applied to Go code
  • Is this a new API? Is this new API marked PREVIEW?

The comments above Read and Write were very old and not up to our
current standards. Update them to be accurate and note that the
offset internal to the image type is not concurrency safe.
This also cleans up some old and unhelpful todos.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
The read_iterate2 call walks over the content of the image calling
the callback for each data region. It is documented to have the
ability to detect holes by setting the data pointer to null
when the region is a hole.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
Signed-off-by: John Mulligan <jmulligan@redhat.com>
@phlogistonjohn
Copy link
Collaborator Author

I expect this to fail. I don't expect to return to this until after the new year. :-D

@phlogistonjohn
Copy link
Collaborator Author

Abandoning PR. See issue #279 for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant