]> git.proxmox.com Git - ceph.git/blame - ceph/src/librbd/io/Types.h
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / librbd / io / Types.h
CommitLineData
7c673cae
FG
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_IO_TYPES_H
5#define CEPH_LIBRBD_IO_TYPES_H
6
7#include "include/int_types.h"
8#include <map>
9#include <vector>
10
11namespace librbd {
12namespace io {
13
14typedef enum {
15 AIO_TYPE_NONE = 0,
16 AIO_TYPE_GENERIC,
17 AIO_TYPE_OPEN,
18 AIO_TYPE_CLOSE,
19 AIO_TYPE_READ,
20 AIO_TYPE_WRITE,
21 AIO_TYPE_DISCARD,
22 AIO_TYPE_FLUSH,
23 AIO_TYPE_WRITESAME,
24} aio_type_t;
25
26typedef std::vector<std::pair<uint64_t, uint64_t> > Extents;
27typedef std::map<uint64_t, uint64_t> ExtentMap;
28
29} // namespace io
30} // namespace librbd
31
32#endif // CEPH_LIBRBD_IO_TYPES_H
33