]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: include in-progress image removals in image list
authorJason Dillaman <dillaman@redhat.com>
Tue, 19 Feb 2019 14:20:51 +0000 (09:20 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 20 Feb 2019 21:47:07 +0000 (16:47 -0500)
commit4e18584bee6c95041588689129fa989dad0ed47e
treeacb7f6a18d851648eba5348ef8622d3e87eaf5fd
parent54d6df4449ca9672df06e8c943be210adb870647
librbd: include in-progress image removals in image list

Exclude them from the trash list to prevent double-counting
them. This mimics the previous behavior for handling interrupted
image removals.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
13 files changed:
src/cls/rbd/cls_rbd_types.h
src/include/rbd/librbd.h
src/librbd/api/Image.cc
src/librbd/api/Migration.cc
src/librbd/api/Pool.cc
src/librbd/api/Trash.cc
src/librbd/api/Trash.h
src/librbd/librbd.cc
src/pybind/rbd/rbd.pyx
src/test/librbd/CMakeLists.txt
src/test/librbd/test_Trash.cc [new file with mode: 0644]
src/test/librbd/test_main.cc
src/tools/rbd/action/Trash.cc