]> 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>
Mon, 3 Mar 2025 20:31:07 +0000 (21:31 +0100)
commit54f47cc28ffd2d29b4f8cfaf56a5a5be2909bde7
tree405e97d09545714f904fc3181b637cb965f74c4a
parent58ab881ad5ffb18a4562b4d76528741d244eeaf9
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>
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