]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: don't stop at the first unremovable image when purging 41662/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 18:30:54 +0000 (20:30 +0200)
commitf9437eb4f6fcc4ba00db609b405c9e9d84379edf
tree4b32c332616f92ef4ff23e7d809d25d38f9e7f6d
parent7d13b17397498c9cee29306be9743a75e5385d60
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)

Conflicts:
qa/workunits/rbd/cli_generic.sh [ commit 6e1434eefc3d
  ("librbd: optionally move parent image to trash on remove")
  not in nautilus ]
qa/workunits/rbd/cli_generic.sh
src/librbd/api/Trash.cc