]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: clarify trash remove error code from interrupted move 40387/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 10 Mar 2021 20:31:22 +0000 (15:31 -0500)
committersinguliere <singuliere@autistici.org>
Wed, 24 Mar 2021 20:40:15 +0000 (21:40 +0100)
Fixes: https://tracker.ceph.com/issues/49716
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 138d71fb0635682510cadda8e4ad5aaab3f39e44)

src/tools/rbd/action/Trash.cc

index 1b7721a59bd3d3d148c00af975b64870cf3d6ad3..a71457bbf4bcf994cf5a5a82ae8fb125f7c9449a 100644 (file)
@@ -146,6 +146,9 @@ int execute_remove(const po::variables_map &vm,
       std::cerr << "rbd: image has snapshots - these must be deleted"
                 << " with 'rbd snap purge' before the image can be removed."
                 << std::endl;
+    } else if (r == -EUCLEAN) {
+      std::cerr << "rbd: error: image not fully moved to trash."
+                << std::endl;
     } else if (r == -EBUSY) {
       std::cerr << "rbd: error: image still has watchers"
                 << std::endl