1 #ifndef __CEPH_IO_ADAPTER_RAW_HH__
2 #define __CEPH_IO_ADAPTER_RAW_HH__
12 #include <sys/types.h>
31 bool useStriperlessReads);
44 virtual ssize_t
write(off64_t offset,
size_t count)
override;
56 virtual ssize_t
read(off64_t offset,
size_t count)
override;
61 bool m_useStriperlessReads {
true};
64 std::atomic< long long> m_stats_read_timer{0}, m_stats_write_timer{0};
65 std::atomic< long long> m_stats_read_bytes{0}, m_stats_write_bytes{0};
66 std::atomic< long long> m_stats_read_req{0}, m_stats_write_req{0};
67 long long m_stats_read_longest{0}, m_stats_write_longest{0};
Implements a non-async read and write to ceph via ceph_posix calls Using the standard ceph_posix_ cal...
virtual ssize_t read(off64_t offset, size_t count) override
Issue a ceph_posix_pread to read to the buffer data from file offset and len count....
virtual ~CephIOAdapterRaw()
virtual ssize_t write(off64_t offset, size_t count) override
Take the data in the buffer and write to ceph at given offset Issues a ceph_posix_pwrite for data in ...
CephIOAdapterRaw(IXrdCephBufferData *bufferdata, int fd, bool useStriperlessReads)
Manage the actual IO operations that read and write the data into Ceph via librados striper....
Interface to the Buffer's physical representation. Allow an interface to encapsulate the requirements...
is a simple implementation of IXrdCephBufferData using std::vector<char> representation for the buffe...