Bug #6257
closed
rbd: cp on sparse image allocates objects in dest
Added by Sage Weil over 10 years ago.
Updated about 10 years ago.
Description
$ ./rbd create foo --size 1000
$ ./rbd cp foo bar
allocates objects for each block of bar.
- Assignee set to Josh Durgin
Same goes for "rbd flatten", which also seems to allocate every block in the resulting image, even if large parts are sparse.
- Priority changed from High to Urgent
- Status changed from New to Fix Under Review
Flatten ignores empty objects since commit:bfa106694dc4db97f58c623eafc3c2d0f9a8bff1, which is in dumpling and emperor. The objects are still created (with size 0) so that there's no implicit reference to the parent while the flatten completes. You can also see that there's no I/O to the empty objects via 'rbd diff <image>'.
Copying is up for review:
https://github.com/ceph/ceph/pull/1575
- Status changed from Fix Under Review to Resolved
Also available in: Atom
PDF