|
XRootD
|
#include <XrdCephOssReadVFile.hh>
Inheritance diagram for XrdCephOssReadVFile:
Collaboration diagram for XrdCephOssReadVFile:Public Member Functions | |
| XrdCephOssReadVFile (XrdCephOss *cephoss, XrdCephOssFile *cephossDF, const std::string &algname) | |
| virtual | ~XrdCephOssReadVFile () |
| virtual int | Close (long long *retsz=0) |
| virtual int | Fstat (struct stat *buff) |
| virtual int | Fsync (void) |
| virtual int | Ftruncate (unsigned long long) |
| virtual int | Open (const char *path, int flags, mode_t mode, XrdOucEnv &env) |
| virtual ssize_t | Read (off_t offset, size_t blen) |
| virtual ssize_t | Read (void *buff, off_t offset, size_t blen) |
| virtual int | Read (XrdSfsAio *aoip) |
| virtual ssize_t | ReadRaw (void *, off_t, size_t) |
| virtual ssize_t | ReadV (XrdOucIOVec *readV, int rdvcnt) |
| virtual ssize_t | Write (const void *buff, off_t offset, size_t blen) |
| virtual int | Write (XrdSfsAio *aiop) |
Public Member Functions inherited from XrdCephOssFile | |
| XrdCephOssFile (XrdCephOss *cephoss) | |
| virtual | ~XrdCephOssFile () |
| virtual int | getFileDescriptor () const |
Public Member Functions inherited from XrdOssDF | |
| XrdOssDF (const char *tid="", uint16_t dftype=0, int fdnum=-1) | |
| virtual | ~XrdOssDF () |
| uint16_t | DFType () |
| virtual int | Fchmod (mode_t mode) |
| virtual int | Fctl (int cmd, int alen, const char *args, char **resp=0) |
| virtual void | Flush () |
| Flush filesystem cached pages for this file (used for checksums). | |
| virtual int | Fsync (XrdSfsAio *aiop) |
| virtual int | getFD () |
| virtual off_t | getMmap (void **addr) |
| virtual const char * | getTID () |
| virtual int | isCompressed (char *cxidp=0) |
| virtual int | Opendir (const char *path, XrdOucEnv &env) |
| virtual ssize_t | pgRead (void *buffer, off_t offset, size_t rdlen, uint32_t *csvec, uint64_t opts) |
| virtual int | pgRead (XrdSfsAio *aioparm, uint64_t opts) |
| virtual ssize_t | pgWrite (void *buffer, off_t offset, size_t wrlen, uint32_t *csvec, uint64_t opts) |
| virtual int | pgWrite (XrdSfsAio *aioparm, uint64_t opts) |
| virtual int | Readdir (char *buff, int blen) |
| virtual int | StatRet (struct stat *buff) |
| virtual ssize_t | WriteV (XrdOucIOVec *writeV, int wrvcnt) |
Protected Attributes | |
| std::string | m_algname = "passthrough" |
| XrdCephOss * | m_cephoss = nullptr |
| bool | m_extraLogging = true |
| std::unique_ptr< XrdCephBuffer::IXrdCephReadVAdapter > | m_readVAdapter |
| std::atomic< long > | m_timer_count {0} |
| timer for the reads against ceph | |
| std::atomic< long > | m_timer_longest {0} |
| number of reads | |
| std::atomic< long > | m_timer_read_ns {0} |
| std::atomic< long > | m_timer_size {0} |
| number of reads | |
| XrdCephOssFile * | m_xrdOssDF = nullptr |
Protected Attributes inherited from XrdCephOssFile | |
| XrdCephOss * | m_cephOss |
| int | m_fd |
Protected Attributes inherited from XrdOssDF | |
| uint16_t | dfType |
| int | fd |
| off_t | pgwEOF |
| short | rsvd |
| const char * | tident |
Additional Inherited Members | |
Static Public Attributes inherited from XrdOssDF | |
| static const uint16_t | DF_isDir = 0x0001 |
| Object is for a directory. | |
| static const uint16_t | DF_isFile = 0x0002 |
| Object is for a file. | |
| static const uint16_t | DF_isProxy = 0x0010 |
| Object is a proxy object. | |
| static const uint64_t | doCalc = 0x4000000000000000ULL |
| pgw: Calculate checksums | |
| static const int | Fctl_ckpObj = 0 |
| static const int | Fctl_utimes = 1 |
| static const uint64_t | Verify = 0x8000000000000000ULL |
| all: Verify checksums | |
Decorator class XrdCephOssReadVFile designed to wrap XrdCephOssFile Functionality for ReadV access to/from data in Ceph to avoid inefficient small reads / writes from the client side. Initially for monitoring purposes
Definition at line 46 of file XrdCephOssReadVFile.hh.
|
explicit |
Definition at line 49 of file XrdCephOssReadVFile.cc.
References XrdCephOssFile::XrdCephOssFile(), if(), LOGCEPH, m_algname, m_cephoss, m_readVAdapter, m_xrdOssDF, and XrdCephEroute.
Here is the call graph for this function:
|
virtual |
Definition at line 66 of file XrdCephOssReadVFile.cc.
References m_xrdOssDF.
|
virtual |
Close a directory or file.
| retsz | If not nil, where the size of the file is to be returned. |
Reimplemented from XrdCephOssFile.
Definition at line 84 of file XrdCephOssReadVFile.cc.
References LOGCEPH, m_timer_count, m_timer_longest, m_timer_read_ns, m_timer_size, and m_xrdOssDF.
|
virtual |
Return state information for this file.
| buf | - Pointer to the structure where info it to be returned. |
Reimplemented from XrdCephOssFile.
Definition at line 197 of file XrdCephOssReadVFile.cc.
References m_xrdOssDF, and stat.
|
virtual |
Synchronize associated file with media (synchronous).
Reimplemented from XrdCephOssFile.
Definition at line 209 of file XrdCephOssReadVFile.cc.
References m_xrdOssDF.
|
virtual |
Set the size of the associated file.
| flen | - The new size of the file. |
Reimplemented from XrdCephOssFile.
Definition at line 213 of file XrdCephOssReadVFile.cc.
References m_xrdOssDF.
|
virtual |
Open a file.
| path | - Pointer to the path of the file to be opened. |
| Oflag | - Standard open flags. |
| Mode | - File open mode (ignored unless creating a file). |
| env | - Reference to environmental information. |
Reimplemented from XrdCephOssFile.
Definition at line 74 of file XrdCephOssReadVFile.cc.
References LOGCEPH, XrdCephOssFile::m_fd, and m_xrdOssDF.
|
virtual |
Preread file blocks into the file system cache.
| offset | - The offset where the read is to start. |
| size | - The number of bytes to pre-read. |
Reimplemented from XrdCephOssFile.
Definition at line 181 of file XrdCephOssReadVFile.cc.
References m_xrdOssDF.
|
virtual |
Read file bytes into a buffer.
| buffer | - pointer to buffer where the bytes are to be placed. |
| offset | - The offset where the read is to start. |
| size | - The number of bytes to read. |
Reimplemented from XrdCephOssFile.
Definition at line 185 of file XrdCephOssReadVFile.cc.
References m_xrdOssDF.
|
virtual |
Read file bytes using asynchronous I/O.
| aiop | - Pointer to async I/O object controlling the I/O. |
Reimplemented from XrdCephOssFile.
Definition at line 189 of file XrdCephOssReadVFile.cc.
References m_xrdOssDF.
|
virtual |
Read uncompressed file bytes into a buffer.
| buffer | - pointer to buffer where the bytes are to be placed. |
| offset | - The offset where the read is to start. |
| size | - The number of bytes to read. |
Reimplemented from XrdCephOssFile.
Definition at line 193 of file XrdCephOssReadVFile.cc.
References m_xrdOssDF.
|
virtual |
Read file bytes as directed by the read vector.
| readV | pointer to the array of read requests. |
| rdvcnt | the number of elements in readV. |
Reimplemented from XrdCephOssFile.
Definition at line 93 of file XrdCephOssReadVFile.cc.
References XrdCephBuffer::ExtentHolder::begin(), XrdCephBuffer::ExtentHolder::bytesContained(), XrdCephBuffer::ExtentHolder::bytesMissing(), XrdCephBuffer::ExtentHolder::end(), XrdOssDF::fd, XrdCephBuffer::ExtentHolder::len(), LOGCEPH, m_extraLogging, m_readVAdapter, m_timer_count, m_timer_longest, m_timer_read_ns, m_timer_size, m_xrdOssDF, XrdOucIOVec::offset, XrdCephBuffer::ExtentHolder::push_back(), XrdCephBuffer::ExtentHolder::size(), XrdOucIOVec::size, and ts().
Here is the call graph for this function:
|
virtual |
Write file bytes from a buffer.
| buffer | - pointer to buffer where the bytes reside. |
| offset | - The offset where the write is to start. |
| size | - The number of bytes to write. |
Reimplemented from XrdCephOssFile.
Definition at line 201 of file XrdCephOssReadVFile.cc.
References m_xrdOssDF.
|
virtual |
Write file bytes using asynchronous I/O.
| aiop | - Pointer to async I/O object controlling the I/O. |
Reimplemented from XrdCephOssFile.
Definition at line 205 of file XrdCephOssReadVFile.cc.
References m_xrdOssDF.
|
protected |
Definition at line 80 of file XrdCephOssReadVFile.hh.
Referenced by XrdCephOssReadVFile().
|
protected |
Definition at line 77 of file XrdCephOssReadVFile.hh.
Referenced by XrdCephOssReadVFile().
|
protected |
Definition at line 79 of file XrdCephOssReadVFile.hh.
Referenced by ReadV().
|
protected |
Definition at line 81 of file XrdCephOssReadVFile.hh.
Referenced by XrdCephOssReadVFile(), and ReadV().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 78 of file XrdCephOssReadVFile.hh.
Referenced by XrdCephOssReadVFile(), ~XrdCephOssReadVFile(), Close(), Fstat(), Fsync(), Ftruncate(), Open(), Read(), Read(), Read(), ReadRaw(), ReadV(), Write(), and Write().