]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rbd_replay/BufferReader.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 #ifndef CEPH_RBD_REPLAY_BUFFER_READER_H
5 #define CEPH_RBD_REPLAY_BUFFER_READER_H
7 #include "include/int_types.h"
8 #include "include/buffer.h"
10 namespace rbd_replay
{
14 static const size_t DEFAULT_MIN_BYTES
= 1<<20;
15 static const size_t DEFAULT_MAX_BYTES
= 1<<22;
17 BufferReader(int fd
, size_t min_bytes
= DEFAULT_MIN_BYTES
,
18 size_t max_bytes
= DEFAULT_MAX_BYTES
);
20 int fetch(bufferlist::iterator
**it
);
27 bufferlist::iterator m_bl_it
;
32 } // namespace rbd_replay
34 #endif // CEPH_RBD_REPLAY_BUFFER_READER_H