]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: skip zeroes when copying an image 1575/head
authorJosh Durgin <josh.durgin@inktank.com>
Mon, 31 Mar 2014 21:53:31 +0000 (14:53 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 31 Mar 2014 22:04:28 +0000 (15:04 -0700)
commit824da2029613a6f4b380b6b2f16a0bd0903f7e3c
tree7fadc4b52076dc99a2ec4615964d306132341ab1
parenta4dc6f2bf8ac1973b96575f2fb83909a5e344260
librbd: skip zeroes when copying an image

This is the simple coarse-grained solution, but it works well in
common cases like a small base image resized with a bunch of empty
space at the end. Finer-grained sparseness can be copied by using rbd
{export,import}-diff.

Fixes: #6257
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/librbd/internal.cc