From: haoyixing Date: Wed, 13 Oct 2021 12:16:58 +0000 (+0800) Subject: rbd: when trash mv, show expiration time if it's not now X-Git-Tag: v17.1.0~396^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=56f6e9588f29b977fe42d76355590e3878cc77c2;p=ceph-ci.git rbd: when trash mv, show expiration time if it's not now Signed-off-by: haoyixing --- diff --git a/src/tools/rbd/action/Trash.cc b/src/tools/rbd/action/Trash.cc index 05cc724589b..cb4c8b8a93e 100644 --- a/src/tools/rbd/action/Trash.cc +++ b/src/tools/rbd/action/Trash.cc @@ -101,6 +101,9 @@ int execute_move(const po::variables_map &vm, << std::endl; } + if (expires_at != "now") { + std::cout << "rbd: image " << image_name << " will expire at " << exp_time << std::endl; + } return r; }