]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rbd: when trash mv, show expiration time if it's not now
authorhaoyixing <haoyixing@kuaishou.com>
Wed, 13 Oct 2021 12:16:58 +0000 (20:16 +0800)
committerhaoyixing <haoyixing@kuaishou.com>
Wed, 13 Oct 2021 12:23:04 +0000 (20:23 +0800)
Signed-off-by: haoyixing <haoyixing@kuaishou.com>
src/tools/rbd/action/Trash.cc

index 05cc724589b374c4a7595bc532b0d87d4c60e95d..cb4c8b8a93e50b6ff1d51539f902a7293a900161 100644 (file)
@@ -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;
 }