xrootd
|
#include <XrdOssHandler.hh>
Public Member Functions | |
virtual int | Opendir (const char *dir_path, XrdOucEnv &Env) |
virtual int | Readdir (char *buff, int blen) |
virtual int | StatRet (struct stat *buff) |
virtual int | Fchmod (mode_t Mode) |
virtual void | Flush () |
Flush filesystem cached pages for this file (used for checksums). | |
virtual int | Fstat (struct stat *buff) |
virtual int | Fsync () |
virtual int | Fsync (XrdSfsAio *aiop) |
virtual int | Ftruncate (unsigned long long flen) |
virtual int | getFD () |
virtual off_t | getMmap (void **addr) |
virtual int | isCompressed (char *cxidp=0) |
virtual int | Open (const char *path, int Oflag, mode_t Mode, XrdOucEnv &Env) |
virtual ssize_t | pgRead (void *buffer, off_t offset, size_t rdlen, uint32_t *csvec, uint64_t opts) |
virtual int | pgRead (XrdSfsAio *aioparm, uint64_t opts) |
virtual ssize_t | pgWrite (void *buffer, off_t offset, size_t wrlen, uint32_t *csvec, uint64_t opts) |
virtual int | pgWrite (XrdSfsAio *aioparm, uint64_t opts) |
virtual ssize_t | Read (off_t offset, size_t blen) |
virtual ssize_t | Read (void *buff, off_t offset, size_t blen) |
virtual int | Read (XrdSfsAio *aiop) |
virtual ssize_t | ReadRaw (void *buff, off_t offset, size_t blen) |
virtual ssize_t | ReadV (XrdOucIOVec *readV, int n) |
virtual ssize_t | Write (const void *buff, off_t offset, size_t blen) |
virtual int | Write (XrdSfsAio *aiop) |
virtual ssize_t | WriteV (XrdOucIOVec *writeV, int n) |
virtual int | Close (long long *retsz=0) |
virtual int | Fctl (int cmd, int alen, const char *args, char **resp=0) |
virtual const char * | getTID () |
XrdOssDFHandler (XrdOssDF *successor) | |
virtual | ~XrdOssDFHandler () |
Public Member Functions inherited from XrdOssDF | |
uint16_t | DFType () |
XrdOssDF (const char *tid="", uint16_t dftype=0, int fdnum=-1) | |
virtual | ~XrdOssDF () |
Protected Attributes | |
XrdOssDF * | successor_ |
Protected Attributes inherited from XrdOssDF | |
const char * | tident |
off_t | pgwEOF |
int | fd |
uint16_t | dfType |
short | rsvd |
Additional Inherited Members | |
Static Public Attributes inherited from XrdOssDF | |
static const uint64_t | Verify = 0x8000000000000000ULL |
all: Verify checksums | |
static const uint64_t | doCalc = 0x4000000000000000ULL |
pgw: Calculate checksums | |
static const uint16_t | DF_isDir = 0x0001 |
Object is for a directory. | |
static const uint16_t | DF_isFile = 0x0002 |
Object is for a file. | |
static const uint16_t | DF_isProxy = 0x0010 |
Object is a proxy object. | |
static const int | Fctl_ckpObj = 0 |
static const int | Fctl_utimes = 1 |
|
inline |
|
inlinevirtual |
References successor_.
|
inlinevirtual |
Close a directory or file.
retsz | If not nil, where the size of the file is to be returned. |
Implements XrdOssDF.
Reimplemented in XrdOssCsiFile.
References XrdOssDF::Close(), and successor_.
|
inlinevirtual |
Change file mode settings.
mode | - The new file mode setting. |
Reimplemented from XrdOssDF.
References XrdOssDF::Fchmod(), and successor_.
|
inlinevirtual |
Reimplemented from XrdOssDF.
References XrdOssDF::Fctl(), and successor_.
|
inlinevirtual |
Flush filesystem cached pages for this file (used for checksums).
Reimplemented from XrdOssDF.
Reimplemented in XrdOssCsiFile.
References XrdOssDF::Flush(), and successor_.
|
inlinevirtual |
Return state information for this file.
buf | - Pointer to the structure where info it to be returned. |
Reimplemented from XrdOssDF.
Reimplemented in XrdOssCsiFile.
References XrdOssDF::Fstat(), and successor_.
|
inlinevirtual |
Synchronize associated file with media (synchronous).
Reimplemented from XrdOssDF.
Reimplemented in XrdOssCsiFile.
References XrdOssDF::Fsync(), and successor_.
|
inlinevirtual |
Synchronize associated file with media (asynchronous).
aiop | - Pointer to async I/O request object. |
Reimplemented from XrdOssDF.
Reimplemented in XrdOssCsiFile.
References XrdOssDF::Fsync(), and successor_.
|
inlinevirtual |
Set the size of the associated file.
flen | - The new size of the file. |
Reimplemented from XrdOssDF.
Reimplemented in XrdOssCsiFile.
References XrdOssDF::Ftruncate(), and successor_.
|
inlinevirtual |
Return the underlying file descriptor.
Reimplemented from XrdOssDF.
Reimplemented in XrdOssCsiFile.
References XrdOssDF::getFD(), and successor_.
|
inlinevirtual |
Return the memory mapped characteristics of the file.
addr | - Pointer to where the memory mapped address is to be returned. |
Reimplemented from XrdOssDF.
Reimplemented in XrdOssCsiFile.
References XrdOssDF::getMmap(), and successor_.
|
inlinevirtual |
Return trace identifier associated with this object.
Reimplemented from XrdOssDF.
References XrdOssDF::getTID(), and successor_.
|
inlinevirtual |
Return file compression charectistics.
cxidp | - Pointer to where the compression algorithm name returned. |
Reimplemented from XrdOssDF.
References XrdOssDF::isCompressed(), and successor_.
|
inlinevirtual |
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.
Reimplemented in XrdOssCsiFile.
References XrdOssDF::Open(), and successor_.
|
inlinevirtual |
Open a directory.
path | - Pointer to the path of the directory to be opened. |
env | - Reference to environmental information. |
Reimplemented from XrdOssDF.
Reimplemented in XrdOssCsiDir.
References XrdOssDF::Opendir(), and successor_.
|
inlinevirtual |
Reimplemented from XrdOssDF.
Reimplemented in XrdOssCsiFile.
References XrdOssDF::pgRead(), and successor_.
|
inlinevirtual |
Read file pages and checksums using asynchronous I/O.
aioparm | - Pointer to async I/O object controlling the I/O. |
opts | - Processing options (see above). |
Reimplemented from XrdOssDF.
Reimplemented in XrdOssCsiFile.
References XrdOssDF::pgRead(), and successor_.
|
inlinevirtual |
Write file pages into a file with corresponding checksums.
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. |
csvec | - A vector which contains the corresponding CRC32 checksum for each page. See XrdOucPgrwUtils::csNum() for sizing. |
opts | - Processing options (see above). |
Reimplemented from XrdOssDF.
Reimplemented in XrdOssCsiFile.
References XrdOssDF::pgWrite(), and successor_.
|
inlinevirtual |
Write file pages and checksums using asynchronous I/O.
aioparm | - Pointer to async I/O object controlling the I/O. |
opts | - Processing options (see above). |
Reimplemented from XrdOssDF.
Reimplemented in XrdOssCsiFile.
References XrdOssDF::pgWrite(), and successor_.
|
inlinevirtual |
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.
Reimplemented in XrdOssCsiFile.
References XrdOssDF::Read(), and successor_.
|
inlinevirtual |
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.
Reimplemented in XrdOssCsiFile.
References XrdOssDF::Read(), and successor_.
|
inlinevirtual |
Read file bytes using asynchronous I/O.
aiop | - Pointer to async I/O object controlling the I/O. |
Reimplemented from XrdOssDF.
Reimplemented in XrdOssCsiFile.
References XrdOssDF::Read(), and successor_.
|
inlinevirtual |
Get the next directory entry.
buff | - Pointer to buffer where a null terminated string of the entry name is to be returned. If no more entries exist, a null string is returned. |
blen | - Length of the buffer. |
Reimplemented from XrdOssDF.
Reimplemented in XrdOssCsiDir.
References XrdOssDF::Readdir(), and successor_.
|
inlinevirtual |
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.
Reimplemented in XrdOssCsiFile.
References XrdOssDF::ReadRaw(), and successor_.
|
inlinevirtual |
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.
Reimplemented in XrdOssCsiFile.
References XrdOssDF::ReadV(), and successor_.
|
inlinevirtual |
Set the stat() buffer where stat information is to be placed corresponding to the directory entry returned by Readdir().
buff | - Pointer to stat structure to be used. |
Reimplemented from XrdOssDF.
References XrdOssDF::StatRet(), and successor_.
|
inlinevirtual |
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.
Reimplemented in XrdOssCsiFile.
References successor_, and XrdOssDF::Write().
|
inlinevirtual |
Write file bytes using asynchronous I/O.
aiop | - Pointer to async I/O object controlling the I/O. |
Reimplemented from XrdOssDF.
Reimplemented in XrdOssCsiFile.
References successor_, and XrdOssDF::Write().
|
inlinevirtual |
Write file bytes as directed by the write vector.
writeV | pointer to the array of write requests. |
wrvcnt | the number of elements in writeV. |
Reimplemented from XrdOssDF.
Reimplemented in XrdOssCsiFile.
References successor_, and XrdOssDF::WriteV().
|
protected |
Referenced by Close(), XrdOssCsiFileAioJob::DoItRead1(), XrdOssCsiFileAioJob::DoItRead2(), XrdOssCsiFileAioJob::DoItWrite1(), XrdOssCsiFileAioJob::DoItWrite2(), Fchmod(), Fctl(), Flush(), Fstat(), Fsync(), Fsync(), Ftruncate(), getFD(), getMmap(), getTID(), isCompressed(), Open(), Opendir(), pgRead(), pgRead(), pgWrite(), pgWrite(), Read(), Read(), Read(), Readdir(), ReadRaw(), ReadV(), StatRet(), Write(), Write(), WriteV(), and ~XrdOssDFHandler().