Extended POSIX interface to XRootD.
More...
#include <XrdPosixExtra.hh>
|
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 const uint64_t | forceCS = 0x0000000000000001ULL |
|
Extended POSIX interface to XRootD.
◆ XrdPosixExtra()
XrdPosixExtra::XrdPosixExtra |
( |
| ) |
|
|
inline |
◆ ~XrdPosixExtra()
XrdPosixExtra::~XrdPosixExtra |
( |
| ) |
|
|
inline |
◆ pgRead()
static ssize_t XrdPosixExtra::pgRead |
( |
int |
fildes, |
|
|
void * |
buffer, |
|
|
off_t |
offset, |
|
|
size_t |
rdlen, |
|
|
std::vector< uint32_t > & |
csvec, |
|
|
uint64_t |
opts = 0 , |
|
|
XrdPosixCallBackIO * |
cbp = 0 |
|
) |
| |
|
static |
◆ pgWrite()
static ssize_t XrdPosixExtra::pgWrite |
( |
int |
fildes, |
|
|
void * |
buffer, |
|
|
off_t |
offset, |
|
|
size_t |
wrlen, |
|
|
std::vector< uint32_t > & |
csvec, |
|
|
uint64_t |
opts = 0 , |
|
|
XrdPosixCallBackIO * |
cbp = 0 |
|
) |
| |
|
static |
Write file pages into a file with corresponding checksums.
- Parameters
-
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. |
- Returns
- >= 0 Sync: The number of bytes written upon success. Async: Always returns 0.
-
< 0 errno hold reason for failure.
◆ forceCS
const uint64_t XrdPosixExtra::forceCS = 0x0000000000000001ULL |
|
static |
Read file pages into a buffer and return corresponding checksums.
- Parameters
-
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. |
- Returns
- >= 0 Sync: Number of bytes that placed in buffer upon success; Async: Always returns 0.
-
< 0 errno hold reason for failure.
The documentation for this class was generated from the following file: