X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Flibrbd%2Fexclusive_lock%2FAutomaticPolicy.h;fp=src%2Fceph%2Fsrc%2Flibrbd%2Fexclusive_lock%2FAutomaticPolicy.h;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=12ba9b6c4337082f273407d9b2ee4bf098e8db77;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/librbd/exclusive_lock/AutomaticPolicy.h b/src/ceph/src/librbd/exclusive_lock/AutomaticPolicy.h deleted file mode 100644 index 12ba9b6..0000000 --- a/src/ceph/src/librbd/exclusive_lock/AutomaticPolicy.h +++ /dev/null @@ -1,34 +0,0 @@ -// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- -// vim: ts=8 sw=2 smarttab - -#ifndef CEPH_LIBRBD_EXCLUSIVE_LOCK_AUTOMATIC_POLICY_H -#define CEPH_LIBRBD_EXCLUSIVE_LOCK_AUTOMATIC_POLICY_H - -#include "librbd/exclusive_lock/Policy.h" - -namespace librbd { - -struct ImageCtx; - -namespace exclusive_lock { - -class AutomaticPolicy : public Policy { -public: - AutomaticPolicy(ImageCtx *image_ctx) : m_image_ctx(image_ctx) { - } - - bool may_auto_request_lock() override { - return true; - } - - int lock_requested(bool force) override; - -private: - ImageCtx *m_image_ctx; - -}; - -} // namespace exclusive_lock -} // namespace librbd - -#endif // CEPH_LIBRBD_EXCLUSIVE_LOCK_AUTOMATIC_POLICY_H