![]() |
XRootD
|
Extended POSIX interface to XRootD. More...
#include <XrdPosixExtra.hh>
Public Member Functions | |
XrdPosixExtra () | |
~XrdPosixExtra () | |
Static Public Member Functions | |
static ssize_t | pgRead (int fildes, void *buffer, off_t offset, size_t rdlen, std::vector< uint32_t > &csvec, uint64_t opts=0, XrdPosixCallBackIO *cbp=0) |
static ssize_t | pgWrite (int fildes, void *buffer, off_t offset, size_t wrlen, std::vector< uint32_t > &csvec, uint64_t opts=0, XrdPosixCallBackIO *cbp=0) |
Static Public Attributes | |
static const uint64_t | forceCS = 0x0000000000000001ULL |
Extended POSIX interface to XRootD.
Definition at line 46 of file XrdPosixExtra.hh.
|
inline |
Definition at line 97 of file XrdPosixExtra.hh.
|
inline |
Definition at line 98 of file XrdPosixExtra.hh.
|
static |
Definition at line 46 of file XrdPosixExtra.cc.
References XrdPosixCallBackIO::Complete(), XrdPosixObject::File(), XrdOucCacheIO::forceCS, forceCS, opts, XrdOucCacheIO::pgRead(), XrdPosixObject::Ref(), XrdPosixObject::UnLock(), and XrdPosixFile::XCio.
Referenced by XrdPssFile::pgRead().
|
static |
Write file pages into a file with corresponding checksums.
fildes | - File descriptor |
buffer | - pointer to buffer containing the bytes to write. |
offset | - The offset where the write is to start. |
wrlen | - The number of bytes to write. be the last write to the file at or above the offset. |
csvec | - A vector which contains the corresponding CRC32 checksum for each page or page segment. If size is 0, then checksums are calculated. If not zero, the size must equal the required number of checksums for offset/wrlen. |
opts | - Options as noted. |
cbp | - When supplied, return is made via callback. |
Definition at line 106 of file XrdPosixExtra.cc.
References XrdPosixCallBackIO::Complete(), XrdOucPgrwUtils::csCalc(), XrdOucPgrwUtils::csNum(), XrdPosixObject::File(), XrdOucCacheIO::pgWrite(), XrdPosixObject::Ref(), XrdPosixObject::UnLock(), XrdPosixFile::UpdtSize(), and XrdPosixFile::XCio.
Referenced by XrdPssFile::pgWrite().
|
static |
Read file pages into a buffer and return corresponding checksums.
fildes | - File descriptor |
buffer | - pointer to buffer where the bytes are to be placed. |
offset | - The offset where the read is to start. |
rdlen | - The number of bytes to read. |
csvec | - A vector to be filled with the corresponding CRC32C checksums for each page or page segment, if available. |
opts | - Options as noted. |
cbp | - Async version: return is made via callback. |
Definition at line 67 of file XrdPosixExtra.hh.
Referenced by pgRead(), and XrdPssFile::pgRead().