|
xrootd
|
#include <XrdSsiFile.hh>


Public Member Functions | |
| int | open (const char *fileName, XrdSfsFileOpenMode openMode, mode_t createMode, const XrdSecEntity *client=0, const char *opaque=0) |
| int | close () |
| int | fctl (const int cmd, const char *args, XrdOucErrInfo &out_error) |
| int | fctl (const int cmd, int alen, const char *args, const XrdSecEntity *client) |
| const char * | FName () |
| int | getCXinfo (char cxtype[4], int &cxrsz) |
| int | getMmap (void **Addr, off_t &Size) |
| int | read (XrdSfsFileOffset fileOffset, XrdSfsXferSize preread_sz) |
| XrdSfsXferSize | read (XrdSfsFileOffset fileOffset, char *buffer, XrdSfsXferSize buffer_size) |
| int | read (XrdSfsAio *aioparm) |
| XrdSfsXferSize | readv (XrdOucIOVec *readV, int readCount) |
| int | SendData (XrdSfsDio *sfDio, XrdSfsFileOffset offset, XrdSfsXferSize size) |
| void | setXio (XrdSfsXio *xP) |
| int | stat (struct stat *buf) |
| int | sync () |
| int | sync (XrdSfsAio *aiop) |
| int | truncate (XrdSfsFileOffset fileOffset) |
| XrdSfsXferSize | write (XrdSfsFileOffset fileOffset, const char *buffer, XrdSfsXferSize buffer_size) |
| int | write (XrdSfsAio *aioparm) |
| XrdSsiFile (const char *user, int MonID) | |
| virtual | ~XrdSsiFile () |
Public Member Functions inherited from XrdSfsFile | |
| virtual int | checkpoint (cpAct act, struct iov *range=0, int n=0) |
| virtual XrdSfsXferSize | pgRead (XrdSfsFileOffset offset, char *buffer, XrdSfsXferSize rdlen, uint32_t *csvec, uint64_t opts=0) |
| virtual int | pgRead (XrdSfsAio *aioparm, uint64_t opts=0) |
| virtual XrdSfsXferSize | pgWrite (XrdSfsFileOffset offset, char *buffer, XrdSfsXferSize wrlen, uint32_t *csvec, uint64_t opts=0) |
| virtual int | pgWrite (XrdSfsAio *aioparm, uint64_t opts=0) |
| virtual XrdSfsXferSize | writev (XrdOucIOVec *writeV, int wdvCnt) |
| XrdSfsFile (const char *user=0, int MonID=0) | |
| XrdSfsFile (XrdSfsFile &wrapF) | |
| XrdSfsFile (XrdOucErrInfo &eInfo) | |
| virtual | ~XrdSfsFile () |
| Destructor. More... | |
Private Attributes | |
| XrdSfsFile * | fsFile |
| XrdSsiFileSess * | fSessP |
| XrdOucErrInfo | myEInfo |
Additional Inherited Members | |
Public Types inherited from XrdSfsFile | |
| enum | cpAct { cpCreate =0, cpDelete, cpRestore } |
Public Attributes inherited from XrdSfsFile | |
| XrdOucErrInfo & | error |
Static Public Attributes inherited from XrdSfsFile | |
| static const uint64_t | Verify = 0x8000000000000000ULL |
| Options for pgRead() and pgWrite() as noted below. More... | |
| static const uint64_t | NetOrder = 0x4000000000000000ULL |
| all: bytes in/out in net byte order More... | |
|
inline |
|
virtual |
|
virtual |
|
virtual |
Execute a special operation on the file (version 1)
| cmd | - The operation to be performed (see below). SFS_FCTL_GETFD Return file descriptor if possible SFS_FCTL_STATV Reserved for future use. |
| args | - specific arguments to cmd SFS_FCTL_GETFD Set to zero. |
| eInfo | - The object where error info or results are to be returned. This is legacy and the error onject may be used as well. |
Implements XrdSfsFile.
|
virtual |
Execute a special operation on the file (version 2)
| cmd | - The operation to be performed: SFS_FCTL_SPEC1 Perform implementation defined action |
| alen | - Length of data pointed to by args. |
| args | - Data sent with request, zero if alen is zero. |
| client | - Client's identify (see common description). |
Reimplemented from XrdSfsFile.
|
virtual |
|
virtual |
Get compression information for the file.
| cxtype | - Place where the compression algorithm name is to be placed |
| cxrsz | - Place where the compression page size is to be returned |
Implements XrdSfsFile.
|
virtual |
Get file's memory mapping if one exists (memory mapped files only).
| addr | - Place where the starting memory address is returned. |
| size | - Place where the file's size is returned. |
Implements XrdSfsFile.
|
virtual |
Open a file.
| path | - Pointer to the path of the file to be opened. |
| oMode | - Flags indicating how the open is to be handled. SFS_O_CREAT create the file SFS_O_MKPTH Make directory path if missing SFS_O_NOWAIT do not impose operational delays SFS_O_NOTPC do not allow TPC operation SFS_O_POSC persist only on successful close SFS_O_RAWIO allow client-side decompression SFS_O_RDONLY open read/only SFS_O_RDWR open read/write SFS_O_REPLICA Open for replication SFS_O_RESET Reset any cached information SFS_O_TRUNC truncate existing file to zero length SFS_O_WRONLY open write/only |
| cMode | - The file's mode if it will be created. |
| client | - Client's identify (see common description). |
| opaque | - path's CGI information (see common description). |
Implements XrdSfsFile.
|
virtual |
Read file bytes using asynchronous I/O.
| aioparm | - Pointer to async I/O object controlling the I/O. |
Implements XrdSfsFile.
|
virtual |
Read file bytes into a buffer.
| offset | - The offset where the read is to start. |
| buffer | - pointer to buffer where the bytes are to be placed. |
| size | - The number of bytes to read. |
Implements XrdSfsFile.
|
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. |
Implements XrdSfsFile.
|
virtual |
Given an array of read requests (size rdvCnt), read them from the file and place the contents consecutively in the provided buffer. A dumb default implementation is supplied but should be replaced to increase performance.
| readV | pointer to the array of read requests. |
| rdvcnt | the number of elements in readV. |
Reimplemented from XrdSfsFile.
|
virtual |
Send file bytes via a XrdSfsDio sendfile object to a client (optional).
| sfDio | - Pointer to the sendfile object for data transfer. |
| offset | - The offset where the read is to start. |
| size | - The number of bytes to read and send. |
Reimplemented from XrdSfsFile.
|
virtual |
Enable exchange buffer I/O for write calls.
| - | Pointer to the XrdSfsXio object to be used for buffer exchanges. |
Reimplemented from XrdSfsFile.
|
virtual |
Return state information on the file.
| buf | - Pointer to the structure where info it to be returned. |
Implements XrdSfsFile.
|
virtual |
Make sure all outstanding data is actually written to the file (sync).
Implements XrdSfsFile.
|
virtual |
Make sure all outstanding data is actually written to the file (async).
Implements XrdSfsFile.
|
virtual |
Truncate the file.
| fsize | - The size that the file is to have. |
Implements XrdSfsFile.
|
virtual |
Write file bytes using asynchronous I/O.
| aioparm | - Pointer to async I/O object controlling the I/O. |
Implements XrdSfsFile.
|
virtual |
Write file bytes from a buffer.
| offset | - The offset where the write is to start. |
| buffer | - pointer to buffer where the bytes reside. |
| size | - The number of bytes to write. |
Implements XrdSfsFile.
|
private |
|
private |
|
private |