#include <XrdPss.hh>
Public Member Functions | |
virtual int | Close (long long *retsz=0) |
virtual int | Open (const char *, int, mode_t, XrdOucEnv &) |
int | Fchmod (mode_t mode) |
int | Fstat (struct stat *) |
int | Fsync () |
int | Fsync (XrdSfsAio *aiop) |
int | Ftruncate (unsigned long long) |
ssize_t | Read (off_t, size_t) |
ssize_t | Read (void *, off_t, size_t) |
int | Read (XrdSfsAio *aiop) |
ssize_t | ReadV (XrdOucIOVec *readV, int n) |
ssize_t | ReadRaw (void *, off_t, size_t) |
ssize_t | Write (const void *, off_t, size_t) |
int | Write (XrdSfsAio *aiop) |
XrdPssFile (const char *tid) | |
virtual | ~XrdPssFile () |
Private Attributes | |
char * | tpcPath |
const XrdSecEntity * | entity |
XrdPssFile::XrdPssFile | ( | const char * | tid | ) | [inline] |
virtual XrdPssFile::~XrdPssFile | ( | ) | [inline, virtual] |
References Close(), XrdOssDF::fd, and tpcPath.
virtual int XrdPssFile::Close | ( | long long * | retsz = 0 |
) | [virtual] |
Close a directory or file.
retsz | If not nil, where the size of the file is to be returned. |
Implements XrdOssDF.
Referenced by ~XrdPssFile().
int XrdPssFile::Fchmod | ( | mode_t | mode | ) | [inline, virtual] |
Change file mode settings.
mode | - The new file mode setting. |
Reimplemented from XrdOssDF.
References XrdOssOK.
int XrdPssFile::Fstat | ( | struct stat * | buf | ) | [virtual] |
Return state information for this file.
buf | - Pointer to the structure where info it to be returned. |
Reimplemented from XrdOssDF.
int XrdPssFile::Fsync | ( | XrdSfsAio * | aiop | ) | [virtual] |
Synchronize associated file with media (asynchronous).
aiop | - Pointer to async I/O request object. |
Reimplemented from XrdOssDF.
int XrdPssFile::Fsync | ( | void | ) | [virtual] |
Synchronize associated file with media (synchronous).
Reimplemented from XrdOssDF.
int XrdPssFile::Ftruncate | ( | unsigned long long | ) | [virtual] |
Set the size of the associated file.
flen | - The new size of the file. |
Reimplemented from XrdOssDF.
virtual int XrdPssFile::Open | ( | const char * | path, | |
int | Oflag, | |||
mode_t | Mode, | |||
XrdOucEnv & | env | |||
) | [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 XrdOssDF.
int XrdPssFile::Read | ( | XrdSfsAio * | aoip | ) | [virtual] |
Read file bytes using asynchronous I/O.
aiop | - Pointer to async I/O object controlling the I/O. |
Reimplemented from XrdOssDF.
ssize_t XrdPssFile::Read | ( | void * | buffer, | |
off_t | offset, | |||
size_t | size | |||
) | [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 XrdOssDF.
ssize_t XrdPssFile::Read | ( | off_t | offset, | |
size_t | size | |||
) | [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 XrdOssDF.
ssize_t XrdPssFile::ReadRaw | ( | void * | buffer, | |
off_t | offset, | |||
size_t | size | |||
) | [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 XrdOssDF.
ssize_t XrdPssFile::ReadV | ( | XrdOucIOVec * | readV, | |
int | rdvcnt | |||
) | [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 XrdOssDF.
int XrdPssFile::Write | ( | XrdSfsAio * | aiop | ) | [virtual] |
Write file bytes using asynchronous I/O.
aiop | - Pointer to async I/O object controlling the I/O. |
Reimplemented from XrdOssDF.
ssize_t XrdPssFile::Write | ( | const void * | buffer, | |
off_t | offset, | |||
size_t | size | |||
) | [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 XrdOssDF.
const XrdSecEntity* XrdPssFile::entity [private] |
char* XrdPssFile::tpcPath [private] |
Referenced by ~XrdPssFile().