]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: fix read_iterate for sparse read
authorYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 20 Jun 2011 17:58:26 +0000 (10:58 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 20 Jun 2011 22:58:23 +0000 (15:58 -0700)
src/librbd.cc

index d66dfcf92f0e2ddc39eaf026b3f04250e9c21385..c390f57acc1ce94886327f41f1e94c1b22ea8d39 100644 (file)
@@ -1167,6 +1167,7 @@ int64_t read_iterate(ImageCtx *ictx, uint64_t off, size_t len,
         return r;
       bl_ofs += extent_len;
       buf_bl_pos += extent_len;
+      block_ofs += extent_len;
     }
 
     /* last hole */