From: Jason Dillaman Date: Wed, 10 Mar 2021 20:31:22 +0000 (-0500) Subject: rbd: clarify trash remove error code from interrupted move X-Git-Tag: v15.2.13~5^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4cdf4fba286dbccca2b72221e0c9e39f349bef4a;p=ceph.git rbd: clarify trash remove error code from interrupted move Fixes: https://tracker.ceph.com/issues/49716 Signed-off-by: Jason Dillaman (cherry picked from commit 138d71fb0635682510cadda8e4ad5aaab3f39e44) --- diff --git a/src/tools/rbd/action/Trash.cc b/src/tools/rbd/action/Trash.cc index 1b7721a59bd3..a71457bbf4bc 100644 --- a/src/tools/rbd/action/Trash.cc +++ b/src/tools/rbd/action/Trash.cc @@ -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