|
XRootD
|
#include <XrdOssStatsFile.hh>
Inheritance diagram for XrdOssStats::File:
Collaboration diagram for XrdOssStats::File:Public Member Functions | |
| File (std::unique_ptr< XrdOssDF > wrapDF, XrdSysError &log, FileSystem &oss) | |
| virtual | ~File () |
| int | Fchmod (mode_t mode) override |
| int | Fstat (struct stat *buf) override |
| int | Ftruncate (unsigned long long size) override |
| int | Open (const char *path, int Oflag, mode_t Mode, XrdOucEnv &env) override |
| ssize_t | pgRead (void *buffer, off_t offset, size_t rdlen, uint32_t *csvec, uint64_t opts) override |
| int | pgRead (XrdSfsAio *aioparm, uint64_t opts) override |
| ssize_t | pgWrite (void *buffer, off_t offset, size_t wrlen, uint32_t *csvec, uint64_t opts) override |
| int | pgWrite (XrdSfsAio *aioparm, uint64_t opts) override |
| ssize_t | Read (off_t offset, size_t size) override |
| ssize_t | Read (void *buffer, off_t offset, size_t size) override |
| int | Read (XrdSfsAio *aiop) override |
| ssize_t | ReadRaw (void *buffer, off_t offset, size_t size) override |
| ssize_t | ReadV (XrdOucIOVec *readV, int rdvcnt) override |
| ssize_t | Write (const void *buffer, off_t offset, size_t size) override |
| int | Write (XrdSfsAio *aiop) override |
| ssize_t | WriteV (XrdOucIOVec *writeV, int wrvcnt) override |
Public Member Functions inherited from XrdOssWrapDF | |
| XrdOssWrapDF (XrdOssDF &df2Wrap) | |
| virtual | ~XrdOssWrapDF () |
| virtual int | Close (long long *retsz=0) |
| 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 int | Fsync () |
| virtual int | Fsync (XrdSfsAio *aiop) |
| 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 int | Readdir (char *buff, int blen) |
| virtual int | StatRet (struct stat *Stat) |
Public Member Functions inherited from XrdOssDF | |
| XrdOssDF (const char *tid="", uint16_t dftype=0, int fdnum=-1) | |
| virtual | ~XrdOssDF () |
| uint16_t | DFType () |
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_utimes = 1 |
| static const uint64_t | Verify = 0x8000000000000000ULL |
| all: Verify checksums | |
Protected Attributes inherited from XrdOssWrapDF | |
| XrdOssDF & | wrapDF |
Protected Attributes inherited from XrdOssDF | |
| uint16_t | dfType |
| int | fd |
| off_t | pgwEOF |
| short | rsvd |
| const char * | tident |
Definition at line 16 of file XrdOssStatsFile.hh.
|
inline |
Definition at line 18 of file XrdOssStatsFile.hh.
|
virtual |
Definition at line 6 of file XrdOssStatsFile.cc.
|
inlineoverridevirtual |
Change file mode settings.
| mode | - The new file mode setting. |
Reimplemented from XrdOssWrapDF.
Definition at line 33 of file XrdOssStatsFile.hh.
References XrdOssDF::Fchmod(), and XrdOssWrapDF::wrapDF.
Here is the call graph for this function:
|
inlineoverridevirtual |
Return state information for this file.
| buf | - Pointer to the structure where info it to be returned. |
Reimplemented from XrdOssWrapDF.
Definition at line 39 of file XrdOssStatsFile.hh.
References XrdOssDF::Fstat(), and XrdOssWrapDF::wrapDF.
Here is the call graph for this function:
|
inlineoverridevirtual |
Set the size of the associated file.
| flen | - The new size of the file. |
Reimplemented from XrdOssWrapDF.
Definition at line 45 of file XrdOssStatsFile.hh.
References XrdOssDF::Ftruncate(), and XrdOssWrapDF::wrapDF.
Here is the call graph for this function:
|
inlineoverridevirtual |
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 XrdOssWrapDF.
Definition at line 27 of file XrdOssStatsFile.hh.
References Mode, XrdOssDF::Open(), and XrdOssWrapDF::wrapDF.
Here is the call graph for this function:
|
inlineoverridevirtual |
Read file pages into a buffer and return corresponding checksums.
| buffer | - pointer to buffer where the bytes are to be placed. |
| offset | - The offset where the read is to start. It must be page aligned. |
| rdlen | - The number of bytes to read. The amount must be an integral number of XrdSfsPage::Size bytes. |
| csvec | - A vector of entries to be filled with the cooresponding CRC32C checksum for each page. It must be size to rdlen/XrdSys::PageSize + (rdlenXrdSys::PageSize != 0) |
| opts | - Processing options (see below). |
Reimplemented from XrdOssWrapDF.
Definition at line 51 of file XrdOssStatsFile.hh.
References opts, XrdOssDF::pgRead(), and XrdOssWrapDF::wrapDF.
Here is the call graph for this function:
|
inlineoverridevirtual |
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 XrdOssWrapDF.
Definition at line 58 of file XrdOssStatsFile.hh.
References opts, XrdOssDF::pgRead(), and XrdOssWrapDF::wrapDF.
Here is the call graph for this function:
|
inlineoverridevirtual |
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. It must be page aligned. |
| wrlen | - The number of bytes to write. If amount is not an integral number of XrdSys::PageSize bytes, then this must be the last write to the file at or above the offset. |
| csvec | - A vector which contains the corresponding CRC32 checksum for each page. It must be size to wrlen/XrdSys::PageSize + (wrlenXrdSys::PageSize != 0) |
| opts | - Processing options (see above). |
Reimplemented from XrdOssWrapDF.
Definition at line 64 of file XrdOssStatsFile.hh.
References opts, XrdOssDF::pgWrite(), and XrdOssWrapDF::wrapDF.
Here is the call graph for this function:
|
inlineoverridevirtual |
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 XrdOssWrapDF.
Definition at line 71 of file XrdOssStatsFile.hh.
References opts, XrdOssDF::pgWrite(), and XrdOssWrapDF::wrapDF.
Here is the call graph for this function:
|
inlineoverridevirtual |
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 XrdOssWrapDF.
Definition at line 77 of file XrdOssStatsFile.hh.
References XrdOssDF::Read(), and XrdOssWrapDF::wrapDF.
Here is the call graph for this function:
|
inlineoverridevirtual |
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 XrdOssWrapDF.
Definition at line 83 of file XrdOssStatsFile.hh.
References XrdOssDF::Read(), and XrdOssWrapDF::wrapDF.
Here is the call graph for this function:
|
inlineoverridevirtual |
Read file bytes using asynchronous I/O.
| aiop | - Pointer to async I/O object controlling the I/O. |
Reimplemented from XrdOssWrapDF.
Definition at line 89 of file XrdOssStatsFile.hh.
References XrdOssDF::Read(), and XrdOssWrapDF::wrapDF.
Here is the call graph for this function:
|
inlineoverridevirtual |
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 XrdOssWrapDF.
Definition at line 95 of file XrdOssStatsFile.hh.
References XrdOssDF::ReadRaw(), and XrdOssWrapDF::wrapDF.
Here is the call graph for this function:
|
inlineoverridevirtual |
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 XrdOssWrapDF.
Definition at line 101 of file XrdOssStatsFile.hh.
References XrdOssDF::ReadV(), and XrdOssWrapDF::wrapDF.
Here is the call graph for this function:
|
inlineoverridevirtual |
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 XrdOssWrapDF.
Definition at line 118 of file XrdOssStatsFile.hh.
References XrdOssWrapDF::wrapDF, and XrdOssDF::Write().
Here is the call graph for this function:
|
inlineoverridevirtual |
Write file bytes using asynchronous I/O.
| aiop | - Pointer to async I/O object controlling the I/O. |
Reimplemented from XrdOssWrapDF.
Definition at line 124 of file XrdOssStatsFile.hh.
References XrdOssWrapDF::wrapDF, and XrdOssDF::Write().
Here is the call graph for this function:
|
inlineoverridevirtual |
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 XrdOssWrapDF.
Definition at line 130 of file XrdOssStatsFile.hh.
References XrdOssWrapDF::wrapDF, and XrdOssDF::WriteV().
Here is the call graph for this function: