Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / librbd / journal / Policy.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_POLICY_H
5 #define CEPH_LIBRBD_JOURNAL_POLICY_H
6
7 class Context;
8
9 namespace librbd {
10
11 namespace journal {
12
13 struct Policy {
14   virtual ~Policy() {
15   }
16
17   virtual bool append_disabled() const = 0;
18   virtual bool journal_disabled() const = 0;
19   virtual void allocate_tag_on_lock(Context *on_finish) = 0;
20 };
21
22 } // namespace journal
23 } // namespace librbd
24
25 #endif // CEPH_LIBRBD_JOURNAL_POLICY_H