-
Notifications
You must be signed in to change notification settings - Fork 258
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
How implement rbd export/import using go-ceph? #319
Comments
Are you talking about this? |
What kind of |
I mean the rbd export on linux cli
If use |
Ah, that probably uses Or it could be used in combination with |
We have issue #279 filed for rbd_read_iterate2. I don't think seek style interfaces are implemented (in librdb). Where they do exist, in cephfs, the Seek(Hole|Data) whence values don't actually seek the holes or data, they're just stubs (see issue #227). In the short term I suggest doing a simple copy loop as @nixpanic suggests with read calls and perhaps do hole detection yourself (eg. read N-size blocks and if the block is all zeros seek forward in your destination file). In the future, when rbd_read_iterate2 or other hole sensitive calls are available use it as an optimization. It's not pretty but that's today's situation AFAICT. |
Hi @nixpanic, @phlogistonjohn, the export command in rbd cli does not only dump the sparse contents. It produces a file in a special format that also contains the image metadata and diffs. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
I did not found export func on
rbd.Image
stuct , any idea to implement this?The text was updated successfully, but these errors were encountered: