![]() |
XRootD
|
Implements a non-async read and write to ceph via ceph_posix calls Using the standard ceph_posix_ calls do the actual read and write operations. No ownership is taken on the buffer that's passed via the constructor. More...
#include <CephIOAdapterRaw.hh>
Public Member Functions | |
CephIOAdapterRaw (IXrdCephBufferData *bufferdata, int fd, bool useStriperlessReads) | |
virtual | ~CephIOAdapterRaw () |
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. No range checking is currently provided here. The caller must provide sufficient space for the max len read. Returns -ve errorcode on failure, else the number of bytes returned. | |
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 the buffer (from pos 0) into ceph at position offset with len count. Returns -ve on error, else the number of bytes writen. | |
![]() | |
virtual | ~ICephIOAdapter () |
Implements a non-async read and write to ceph via ceph_posix calls Using the standard ceph_posix_ calls do the actual read and write operations. No ownership is taken on the buffer that's passed via the constructor.
Definition at line 28 of file CephIOAdapterRaw.hh.
CephIOAdapterRaw::CephIOAdapterRaw | ( | IXrdCephBufferData * | bufferdata, |
int | fd, | ||
bool | useStriperlessReads | ||
) |
Definition at line 14 of file CephIOAdapterRaw.cc.
|
virtual |
Definition at line 20 of file CephIOAdapterRaw.cc.
References BUFLOG.
|
overridevirtual |
Issue a ceph_posix_pread to read to the buffer data from file offset and len count. No range checking is currently provided here. The caller must provide sufficient space for the max len read. Returns -ve errorcode on failure, else the number of bytes returned.
offset | |
count |
Implements XrdCephBuffer::ICephIOAdapter.
Definition at line 62 of file CephIOAdapterRaw.cc.
References BUFLOG, ceph_posix_maybestriper_pread(), XrdCephBuffer::IXrdCephBufferData::raw(), XrdCephBuffer::IXrdCephBufferData::setLength(), XrdCephBuffer::IXrdCephBufferData::setStartingOffset(), and XrdCephBuffer::IXrdCephBufferData::setValid().
|
overridevirtual |
Take the data in the buffer and write to ceph at given offset Issues a ceph_posix_pwrite for data in the buffer (from pos 0) into ceph at position offset with len count. Returns -ve on error, else the number of bytes writen.
offset | |
count |
Implements XrdCephBuffer::ICephIOAdapter.
Definition at line 41 of file CephIOAdapterRaw.cc.
References ceph_posix_pwrite(), and XrdCephBuffer::IXrdCephBufferData::raw().