#include <XrdPosixPrepIO.hh>
Public Member Functions | |
| XrdPosixPrepIO (XrdPosixFile *fP, XrdCl::OpenFlags::Flags clflags, XrdCl::Access::Mode clmode) | |
| virtual | ~XrdPosixPrepIO () |
| bool | Detach (XrdOucCacheIOCD &cdP) |
| void | Disable () |
| int | Fcntl (XrdOucCacheOp::Code opc, const std::string &args, std::string &resp) |
| long long | FSize () |
| int | Fstat (struct stat &buf) |
| int | Open () |
| const char * | Path () |
| int | Read (char *Buffer, long long Offset, int Length) |
| void | Read (XrdOucCacheIOCB &iocb, char *buff, long long offs, int rlen) |
| int | ReadV (const XrdOucIOVec *readV, int n) |
| void | ReadV (XrdOucCacheIOCB &iocb, const XrdOucIOVec *readV, int rnum) |
| int | Sync () |
| void | Sync (XrdOucCacheIOCB &iocb) |
| int | Trunc (long long Offset) |
| int | Write (char *Buffer, long long Offset, int Length) |
| void | Write (XrdOucCacheIOCB &iocb, char *buff, long long offs, int wlen) |
| Public Member Functions inherited from XrdOucCacheIO | |
| XrdOucCacheIO () | |
| Construct and Destructor. | |
| virtual const char * | Location (bool refresh=false) |
| virtual int | pgRead (char *buff, long long offs, int rdlen, std::vector< uint32_t > &csvec, uint64_t opts=0, int *csfix=0) |
| virtual void | pgRead (XrdOucCacheIOCB &iocb, char *buff, long long offs, int rdlen, std::vector< uint32_t > &csvec, uint64_t opts=0, int *csfix=0) |
| virtual int | pgWrite (char *buff, long long offs, int wrlen, std::vector< uint32_t > &csvec, uint64_t opts=0, int *csfix=0) |
| virtual void | pgWrite (XrdOucCacheIOCB &iocb, char *buff, long long offs, int wrlen, std::vector< uint32_t > &csvec, uint64_t opts=0, int *csfix=0) |
| virtual void | Preread (aprParms &Parms) |
| virtual void | Preread (long long offs, int rlen, int opts=0) |
| virtual void | Preread (XrdOucRangeList &rlist) |
| virtual void | Trunc (XrdOucCacheIOCB &iocb, long long offs) |
| virtual void | Update (XrdOucCacheIO &iocp) |
| virtual int | WriteV (const XrdOucIOVec *writV, int wnum) |
| virtual void | WriteV (XrdOucCacheIOCB &iocb, const XrdOucIOVec *writV, int wnum) |
Additional Inherited Members | |
| Static Public Attributes inherited from XrdOucCacheIO | |
| static const uint64_t | forceCS = 0x0000000000000001ULL |
| static const int | SingleUse = 0x0001 |
| Mark pages for single use. | |
| Protected Member Functions inherited from XrdOucCacheIO | |
| virtual | ~XrdOucCacheIO () |
Definition at line 38 of file XrdPosixPrepIO.hh.
|
inline |
Definition at line 93 of file XrdPosixPrepIO.hh.
|
inlinevirtual |
Definition at line 97 of file XrdPosixPrepIO.hh.
|
inlinevirtual |
Detach this CacheIO object from the cache.
| iocd | reference to the detach complete callback object. |
Implements XrdOucCacheIO.
Definition at line 42 of file XrdPosixPrepIO.hh.
| void XrdPosixPrepIO::Disable | ( | ) |
Definition at line 51 of file XrdPosixPrepIO.cc.
References DEBUG, DEBUGON, EPNAME, and obfuscateAuth().
|
inlinevirtual |
Issue a special file control operation (synchronous).
| opc | The operation code (one of the enums). |
| args | The argument as required by opc. |
| resp | Where the response is to be placed. |
Reimplemented from XrdOucCacheIO.
Definition at line 46 of file XrdPosixPrepIO.hh.
|
inlinevirtual |
Obtain size of the file.
Implements XrdOucCacheIO.
Definition at line 50 of file XrdPosixPrepIO.hh.
|
inlinevirtual |
Perform an fstat() operation (defaults to passthrough).
| sbuff | reference to the stat buffer to be filled in. Only fields st_size, st_blocks, st_mtime (st_atime and st_ctime may be set to st_mtime), st_ino, and st_mode need to be set. All other fields are preset and should not be changed. |
Reimplemented from XrdOucCacheIO.
Definition at line 52 of file XrdPosixPrepIO.hh.
References stat.
|
inline |
Definition at line 55 of file XrdPosixPrepIO.hh.
|
inlinevirtual |
Get the path associated with this object.
Implements XrdOucCacheIO.
Definition at line 57 of file XrdPosixPrepIO.hh.
|
inlinevirtual |
Perform an synchronous read.
| buff | pointer to the buffer to receive the results. The buffer must remain valid until the callback is invoked. |
| offs | the offset into the file. |
| rlen | the number of bytes to read. |
Implements XrdOucCacheIO.
Definition at line 59 of file XrdPosixPrepIO.hh.
|
inlinevirtual |
Perform an asynchronous read (defaults to synchronous).
| iocb | reference to the callback object that receives the result. All results are returned via this object's Done() method. If the caller holds any locks they must be recursive locks as the callback may occur on the calling thread. |
| buff | pointer to the buffer to receive the results. The buffer must remain valid until the callback is invoked. |
| offs | the offset into the file. |
| rlen | the number of bytes to read. |
Reimplemented from XrdOucCacheIO.
Definition at line 62 of file XrdPosixPrepIO.hh.
References XrdOucCacheIOCB::Done().
|
inlinevirtual |
Perform an synchronous vector read.
| readV | pointer to a vector of read requests. |
| rnum | the number of elements in the vector. |
Reimplemented from XrdOucCacheIO.
Definition at line 67 of file XrdPosixPrepIO.hh.
|
inlinevirtual |
Perform an asynchronous vector read (defaults to synchronous).
| iocb | reference to the callback object that receives the result. All results are returned via this object's Done() method. If the caller holds any locks they must be recursive locks as the callback may occur on the calling thread. |
| readV | pointer to a vector of read requests. |
| rnum | the number of elements in the vector. |
Reimplemented from XrdOucCacheIO.
Definition at line 70 of file XrdPosixPrepIO.hh.
References XrdOucCacheIOCB::Done().
|
inlinevirtual |
Perform an synchronous sync() operation.
Implements XrdOucCacheIO.
Definition at line 75 of file XrdPosixPrepIO.hh.
|
inlinevirtual |
Perform an asynchronous sync() operation (defaults to synchronous).
| iocb | reference to the callback object that receives the result. All results are returned via this object's Done() method. If the caller holds any locks they must be recursive locks as the callback may occur on the calling thread. |
Reimplemented from XrdOucCacheIO.
Definition at line 77 of file XrdPosixPrepIO.hh.
References XrdOucCacheIOCB::Done().
|
inlinevirtual |
Perform an synchronous trunc() operation.
| offs | the size the file is have. |
Implements XrdOucCacheIO.
Definition at line 82 of file XrdPosixPrepIO.hh.
|
inlinevirtual |
Perform an synchronous write.
| buff | pointer to the buffer holding the contents. The buffer must remain valid until the callback is invoked. |
| offs | the offset into the file. |
| wlen | the number of bytes to write |
Implements XrdOucCacheIO.
Definition at line 85 of file XrdPosixPrepIO.hh.
|
inlinevirtual |
Perform an asynchronous write (defaults to synchronous).
| iocb | reference to the callback object that receives the result. All results are returned via this object's Done() method. If the caller holds any locks they must be recursive locks as the callback may occur on the calling thread. |
| buff | pointer to the buffer holding the contents. The buffer must remain valid until the callback is invoked. |
| offs | the offset into the file. |
| wlen | the number of bytes to write |
Reimplemented from XrdOucCacheIO.
Definition at line 88 of file XrdPosixPrepIO.hh.
References XrdOucCacheIOCB::Done().