Actions
Bug #6257
closedrbd: cp on sparse image allocates objects in dest
% Done:
0%
Source:
Community (user)
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
$ ./rbd create foo --size 1000 $ ./rbd cp foo bar
allocates objects for each block of bar.
Updated by Oliver Daudey over 10 years ago
Same goes for "rbd flatten", which also seems to allocate every block in the resulting image, even if large parts are sparse.
Updated by Josh Durgin about 10 years ago
- 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
Updated by Sage Weil about 10 years ago
- Status changed from Fix Under Review to Resolved
Actions