]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd: import-diff should discard any zeroed extents 14445/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 11 Apr 2017 01:09:01 +0000 (21:09 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 12 Apr 2017 13:00:54 +0000 (09:00 -0400)
commitf682d26e6d4e03f1d50dc65de7680df5377fe978
tree80627681a35ac5c24b0f1d5af18a2de4d0876d57
parent9a80faa546aa332a050a989b9520167f1ac3fc27
rbd: import-diff should discard any zeroed extents

Sparse (zeroed) extents cannot be safely skipped. Instead, the
zeroed extent should be discarded from the image to ensure
the import remains consistent with the export.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/tools/rbd/Utils.cc
src/tools/rbd/Utils.h
src/tools/rbd/action/Import.cc