]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: don't stop at the first unremovable image when purging 41664/head
authorIlya Dryomov <idryomov@gmail.com>
Wed, 26 May 2021 12:21:22 +0000 (14:21 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 2 Jun 2021 19:53:52 +0000 (21:53 +0200)
commit45555c935d56775bc0684bc4b308a26f74cebe99
tree80afa7daf55e1a1db0ab8c365561f02135249d6f
parent8a49fa013e9a16f127e32bec0efcf87fec1ee7a2
librbd: don't stop at the first unremovable image when purging

As there is no inherent ordering, there may be multiple removable
images past the unremovable image.  On top of that, removing a clone
may make its parent removable so perform an additional pass if any
image gets removed.

Fixes: https://tracker.ceph.com/issues/51021
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 16d9a68a3e863b5a819860abf0696fb76fc9341a)
qa/workunits/rbd/cli_generic.sh
src/librbd/api/Trash.cc