]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: implement diff_iterate
authorSage Weil <sage@inktank.com>
Mon, 25 Mar 2013 21:14:50 +0000 (14:14 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 1 Apr 2013 06:32:40 +0000 (23:32 -0700)
commit0296c7cdae91907efadf4f5b154b817daf55b26f
tree6d2776911b012df20694526df1ca5de10998291c
parent6db5109127d34a1d7418baf739ca31dd772797f4
librbd: implement diff_iterate

Implement a diff_iterate() method that will iterate over an image and
report which extents vary between two snapshots (or a snapshot and the
head).  The callback gets an extent and a flag indicating whether it is
full of data or is known to be zero in the ending snapshot.

Signed-off-by: Sage Weil <sage@inktank.com>
src/Makefile.am
src/include/rados/rados_types.hpp
src/include/rbd/librbd.hpp
src/librbd/internal.cc
src/librbd/internal.h
src/librbd/librbd.cc
src/osdc/snap_set_diff.cc [new file with mode: 0644]
src/osdc/snap_set_diff.h [new file with mode: 0644]
src/test/librbd/test_librbd.cc