]> git.proxmox.com Git - ceph.git/blob - ceph/src/librbd/cache/Types.h
import ceph quincy 17.2.1
[ceph.git] / ceph / src / librbd / cache / Types.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_CACHE_TYPES_H
5 #define CEPH_LIBRBD_CACHE_TYPES_H
6
7 #include <list>
8 #include <string>
9
10 class Context;
11
12 namespace librbd {
13 namespace cache {
14
15 enum ImageCacheType {
16 IMAGE_CACHE_TYPE_RWL = 1,
17 IMAGE_CACHE_TYPE_SSD,
18 IMAGE_CACHE_TYPE_UNKNOWN
19 };
20
21 typedef std::list<Context *> Contexts;
22
23 const std::string PERSISTENT_CACHE_STATE = ".rbd_persistent_cache_state";
24
25 } // namespace cache
26 } // namespace librbd
27
28 #endif // CEPH_LIBRBD_CACHE_TYPES_H