]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: skip zeroes when copying an image
authorJosh Durgin <josh.durgin@inktank.com>
Mon, 31 Mar 2014 21:53:31 +0000 (14:53 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Wed, 16 Jul 2014 17:43:05 +0000 (10:43 -0700)
commitd06137841f9911ce4dc0d9ab9be73a131ede879d
treed4f9e1fdef2d70876aba4d3e9ee3cb8b538ad562
parent8649cbbc96a4de9de169b0203f35e0ac6c36a2ef
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>
(cherry picked from commit 824da2029613a6f4b380b6b2f16a0bd0903f7e3c)
src/librbd/internal.cc