From: Josh Durgin Date: Fri, 29 Mar 2013 23:35:20 +0000 (-0700) Subject: rbd: update progress as a diff is exported X-Git-Tag: v0.62~118^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2ec87e66a5b1ad7a9f2afc5ed5bd5868a827670f;p=ceph.git rbd: update progress as a diff is exported This will be jumpy since changed extents probably aren't evenly distributed, but it's better than nothing. Signed-off-by: Josh Durgin --- diff --git a/src/rbd.cc b/src/rbd.cc index 93f0a69739b7..aad6de38c688 100644 --- a/src/rbd.cc +++ b/src/rbd.cc @@ -1062,6 +1062,8 @@ static int export_diff_cb(uint64_t ofs, size_t _len, bool zero, void *arg) return r; } + ec->pc.update_progress(ofs, ec->totalsize); + return 0; }