]> git.apps.os.sepia.ceph.com Git - ceph.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>
Wed, 5 Mar 2025 12:55:02 +0000 (13:55 +0100)
commit67ebbb66ca7ce7cbc7411ee7974b69a47e8c6559
tree8b484aa8a2c77592701828de1fb0921b1624581f
parent447815599e5bfd4ea625209c58772e0ccc3548b8
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 squid ]
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