Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / librbd / journal / DisabledPolicy.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3
4 #ifndef CEPH_LIBRBD_JOURNAL_DISABLED_POLICY_H
5 #define CEPH_LIBRBD_JOURNAL_DISABLED_POLICY_H
6
7 #include "librbd/journal/Policy.h"
8
9 namespace librbd {
10
11 struct ImageCtx;
12
13 namespace journal {
14
15 class DisabledPolicy : public Policy {
16 public:
17   bool append_disabled() const override {
18     return true;
19   }
20   bool journal_disabled() const override {
21     return true;
22   }
23   void allocate_tag_on_lock(Context *on_finish) override {
24     assert(false);
25   }
26 };
27
28 } // namespace journal
29 } // namespace librbd
30
31 #endif // CEPH_LIBRBD_JOURNAL_DISABLED_POLICY_H