]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: fix diff_iterate arithmetic for non-standard striping
authorSage Weil <sage@inktank.com>
Thu, 28 Mar 2013 21:13:03 +0000 (14:13 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 1 Apr 2013 06:32:41 +0000 (23:32 -0700)
commit39689fea49c3d0fd9dfcd7f6abc865f7d4a9697d
tree93e482577682741994bb4020cc34def9f8abb60a
parentf2b0880a895725a1d5f2a56412f0fefe6ca18bb5
librbd: fix diff_iterate arithmetic for non-standard striping

This code is confusing because we are moving back and forth between
image offsets, "buffer" offsets (image offsets relative to off), and
object offsets.  Fix the math.

Signed-off-by: Sage Weil <sage@inktank.com>
src/librbd/internal.cc