From 93d36a8bcb1d5f1c6134332af2e0a58fcd731082 Mon Sep 17 00:00:00 2001 From: songweibin Date: Sun, 4 Mar 2018 11:42:06 +0800 Subject: [PATCH] rbd: allow trash rm/purge when pool quota is full used Signed-off-by: songweibin --- src/tools/rbd/action/Trash.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/rbd/action/Trash.cc b/src/tools/rbd/action/Trash.cc index b1ad5ade30e7..437eb8433f5a 100644 --- a/src/tools/rbd/action/Trash.cc +++ b/src/tools/rbd/action/Trash.cc @@ -151,6 +151,7 @@ int execute_remove(const po::variables_map &vm, return r; } + io_ctx.set_osdmap_full_try(); librbd::RBD rbd; utils::ProgressContext pc("Removing image", vm[at::NO_PROGRESS].as()); @@ -377,6 +378,7 @@ int execute_purge (const po::variables_map &vm, return r; } + io_ctx.set_osdmap_full_try(); librbd::RBD rbd; std::vector trash_entries; -- 2.47.3