]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: add rbd_diff_iterate3() API to take source snapshot by ID
authorVinayBhaskar-V <vvarada@redhat.com>
Tue, 26 Nov 2024 11:18:51 +0000 (16:48 +0530)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 7 Mar 2025 10:57:53 +0000 (11:57 +0100)
commitdd64132044e0387f9cdef62b995b88db62f124be
tree30fb3ad59fe732380eb2e28fcc5dc13ee642402f
parent86dddfdc3f99ecefe54aee62c4ddb929b753f0d1
librbd: add rbd_diff_iterate3() API to take source snapshot by ID

Allow a diff to start from a non-user snapshot.  This would be used by
"rbd du" command to account for non-user snapshots which are currently
just skipped potentially resulting in underreported space usage and in
other places.

Fixes: https://tracker.ceph.com/issues/65720
Co-authored-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Vinay Bhaskar Varada <vvarada@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 54f47cc28ffd2d29b4f8cfaf56a5a5be2909bde7)

Conflicts:
src/include/rbd/librbd.h [ commit e5ccce14c4b0 ("rbd: add group
  snap info command") not in reef ]
src/test/pybind/test_rbd.py [ commit d7fd66ec9944 ("librbd: add
  rbd_clone4() API to take parent snapshot by ID") not in reef ]
src/include/rbd/librbd.h
src/include/rbd/librbd.hpp
src/librbd/api/DiffIterate.cc
src/librbd/api/DiffIterate.h
src/librbd/api/Trash.cc
src/librbd/librbd.cc
src/pybind/rbd/c_rbd.pxd
src/pybind/rbd/mock_rbd.pxi
src/pybind/rbd/rbd.pyx
src/test/librbd/test_internal.cc
src/test/pybind/test_rbd.py