#include <XrdOssMirageFile.hh>
Public Member Functions | |
| XrdOssMirageFile (XrdOssMirage &oss) | |
| virtual | ~XrdOssMirageFile ()=default |
| virtual int | Close (long long *retsz=0) override |
| virtual int | Fchmod (mode_t mode) override |
| virtual int | Fstat (struct stat *buf) override |
| virtual int | Fsync () override |
| virtual int | Fsync (XrdSfsAio *aiop) override |
| virtual int | Ftruncate (unsigned long long flen) override |
| virtual int | Open (const char *path, int Oflag, mode_t Mode, XrdOucEnv &env) override |
| virtual ssize_t | pgRead (void *buffer, off_t offset, size_t rdlen, uint32_t *csvec, uint64_t opts) override |
| virtual int | pgRead (XrdSfsAio *aioparm, uint64_t opts) override |
| virtual ssize_t | pgWrite (void *buffer, off_t offset, size_t wrlen, uint32_t *csvec, uint64_t opts) override |
| virtual int | pgWrite (XrdSfsAio *aioparm, uint64_t opts) override |
| virtual ssize_t | Read (off_t offset, size_t size) override |
| virtual ssize_t | Read (void *buffer, off_t offset, size_t size) override |
| virtual int | Read (XrdSfsAio *aiop) override |
| virtual ssize_t | ReadRaw (void *buffer, off_t offset, size_t size) override |
| virtual int | StatRet (struct stat *buff) override |
| virtual ssize_t | Write (const void *buffer, off_t offset, size_t size) override |
| virtual int | Write (XrdSfsAio *aiop) override |
| Public Member Functions inherited from XrdOssDF | |
| XrdOssDF (const char *tid="", uint16_t dftype=0, int fdnum=-1) | |
| virtual | ~XrdOssDF () |
| virtual int | Clone (const std::vector< XrdOucCloneSeg > &cVec) |
| virtual int | Clone (XrdOssDF &srcFile) |
| uint16_t | DFType () |
| virtual int | Fctl (int cmd, int alen, const char *args, char **resp=0) |
| virtual void | Flush () |
| Flush filesystem cached pages for this file (used for checksums). | |
| virtual bool | getErrMsg (std::string &eText) |
| virtual int | getFD () |
| virtual off_t | getMmap (void **addr) |
| virtual const char * | getTID () |
| virtual int | isCompressed (char *cxidp=0) |
| virtual int | Opendir (const char *path, XrdOucEnv &env) |
| virtual ssize_t | Read (XrdOucRangeList &rlist) |
| virtual int | Readdir (char *buff, int blen) |
| virtual ssize_t | ReadV (XrdOucIOVec *readV, int rdvcnt) |
| virtual ssize_t | WriteV (XrdOucIOVec *writeV, int wrvcnt) |
Additional Inherited Members | |
| Static Public Attributes inherited from XrdOssDF | |
| 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 uint64_t | doCalc = 0x4000000000000000ULL |
| pgw: Calculate checksums | |
| static const int | Fctl_ckpObj = 0 |
| static const int | Fctl_QFinfo = 3 |
| static const int | Fctl_setFD = 2 |
| static const int | Fctl_utimes = 1 |
| static const uint64_t | Verify = 0x8000000000000000ULL |
| all: Verify checksums | |
| Protected Attributes inherited from XrdOssDF | |
| uint16_t | dfType |
| int | fd |
| off_t | pgwEOF |
| short | rsvd |
| const char * | tident |
Definition at line 10 of file XrdOssMirageFile.hh.
| XrdOssMirageFile::XrdOssMirageFile | ( | XrdOssMirage & | oss | ) |
Definition at line 11 of file XrdOssMirageFile.cc.
|
overridevirtual |
Close a directory or file.
| retsz | If not nil, where the size of the file is to be returned. |
Implements XrdOssDF.
Definition at line 148 of file XrdOssMirageFile.cc.
References XrdOssOK.
|
overridevirtual |
Change file mode settings.
| mode | - The new file mode setting. |
Reimplemented from XrdOssDF.
Definition at line 22 of file XrdOssMirageFile.cc.
|
overridevirtual |
Return state information for this file.
| buf | - Pointer to the structure where info it to be returned. |
Reimplemented from XrdOssDF.
Definition at line 27 of file XrdOssMirageFile.cc.
|
overridevirtual |
Synchronize associated file with media (synchronous).
Reimplemented from XrdOssDF.
Definition at line 34 of file XrdOssMirageFile.cc.
References XrdOssOK.
|
overridevirtual |
Synchronize associated file with media (asynchronous).
| aiop | - Pointer to async I/O request object. |
Reimplemented from XrdOssDF.
Definition at line 39 of file XrdOssMirageFile.cc.
|
overridevirtual |
Set the size of the associated file.
| flen | - The new size of the file. |
Reimplemented from XrdOssDF.
Definition at line 44 of file XrdOssMirageFile.cc.
References XrdOssOK.
|
overridevirtual |
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.
Definition at line 50 of file XrdOssMirageFile.cc.
|
overridevirtual |
Reimplemented from XrdOssDF.
Definition at line 77 of file XrdOssMirageFile.cc.
References opts.
|
overridevirtual |
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.
Definition at line 82 of file XrdOssMirageFile.cc.
References opts.
|
overridevirtual |
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.
Definition at line 87 of file XrdOssMirageFile.cc.
References opts.
|
overridevirtual |
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.
Definition at line 92 of file XrdOssMirageFile.cc.
References opts.
|
overridevirtual |
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.
Definition at line 97 of file XrdOssMirageFile.cc.
References XrdOssOK.
Referenced by ReadRaw().
|
overridevirtual |
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.
Definition at line 102 of file XrdOssMirageFile.cc.
References XrdOssOK.
|
overridevirtual |
Read file bytes using asynchronous I/O.
| aiop | - Pointer to async I/O object controlling the I/O. |
Reimplemented from XrdOssDF.
Definition at line 122 of file XrdOssMirageFile.cc.
|
overridevirtual |
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.
Definition at line 127 of file XrdOssMirageFile.cc.
References Read().
|
overridevirtual |
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.
Definition at line 17 of file XrdOssMirageFile.cc.
References stat.
|
overridevirtual |
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.
Definition at line 132 of file XrdOssMirageFile.cc.
References XrdOssOK.
|
overridevirtual |
Write file bytes using asynchronous I/O.
| aiop | - Pointer to async I/O object controlling the I/O. |
Reimplemented from XrdOssDF.
Definition at line 143 of file XrdOssMirageFile.cc.