Replies: 6 comments 2 replies
-
Are you talking about this? |
Beta Was this translation helpful? Give feedback.
-
What kind of |
Beta Was this translation helpful? Give feedback.
-
I mean the rbd export on linux cli
If use |
Beta Was this translation helpful? Give feedback.
-
Ah, that probably uses Or it could be used in combination with |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
I did not found export func on
rbd.Image
stuct , any idea to implement this?Beta Was this translation helpful? Give feedback.
All reactions