![]() |
XRootD
|
#include <XrdOssStatsFile.hh>
Public Member Functions | |
StatsFile (std::unique_ptr< XrdOssDF > wrapDF, XrdSysError &log, StatsFileSystem &oss) | |
virtual | ~StatsFile () |
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 |
![]() | |
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). More... | |
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) |
![]() | |
XrdOssDF (const char *tid="", uint16_t dftype=0, int fdnum=-1) | |
virtual | ~XrdOssDF () |
uint16_t | DFType () |
Additional Inherited Members | |
![]() | |
static const uint16_t | DF_isDir = 0x0001 |
Object is for a directory. More... | |
static const uint16_t | DF_isFile = 0x0002 |
Object is for a file. More... | |
static const uint16_t | DF_isProxy = 0x0010 |
Object is a proxy object. More... | |
static const uint64_t | doCalc = 0x4000000000000000ULL |
pgw: Calculate checksums More... | |
static const int | Fctl_ckpObj = 0 |
static const int | Fctl_utimes = 1 |
static const uint64_t | Verify = 0x8000000000000000ULL |
all: Verify checksums More... | |
![]() | |
XrdOssDF & | wrapDF |
![]() | |
uint16_t | dfType |
int | fd |
off_t | pgwEOF |
short | rsvd |
const char * | tident |
Definition at line 13 of file XrdOssStatsFile.hh.
|
inline |
Definition at line 15 of file XrdOssStatsFile.hh.
|
virtual |
Definition at line 4 of file XrdOssStatsFile.cc.
|
inlineoverridevirtual |
Change file mode settings.
mode | - The new file mode setting. |
Reimplemented from XrdOssWrapDF.
Definition at line 30 of file XrdOssStatsFile.hh.
References XrdOssDF::Fchmod(), and XrdOssWrapDF::wrapDF.
|
inlineoverridevirtual |
Return state information for this file.
buf | - Pointer to the structure where info it to be returned. |
Reimplemented from XrdOssWrapDF.
Definition at line 36 of file XrdOssStatsFile.hh.
References XrdOssDF::Fstat(), and XrdOssWrapDF::wrapDF.
|
inlineoverridevirtual |
Set the size of the associated file.
flen | - The new size of the file. |
Reimplemented from XrdOssWrapDF.
Definition at line 42 of file XrdOssStatsFile.hh.
References XrdOssDF::Ftruncate(), and XrdOssWrapDF::wrapDF.
|
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 24 of file XrdOssStatsFile.hh.
References Mode, XrdOssDF::Open(), and XrdOssWrapDF::wrapDF.
|
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 48 of file XrdOssStatsFile.hh.
References opts, XrdOssDF::pgRead(), and XrdOssWrapDF::wrapDF.
|
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 55 of file XrdOssStatsFile.hh.
References opts, XrdOssDF::pgRead(), and XrdOssWrapDF::wrapDF.
|
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 61 of file XrdOssStatsFile.hh.
References opts, XrdOssDF::pgWrite(), and XrdOssWrapDF::wrapDF.
|
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 68 of file XrdOssStatsFile.hh.
References opts, XrdOssDF::pgWrite(), and XrdOssWrapDF::wrapDF.
|
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 74 of file XrdOssStatsFile.hh.
References XrdOssDF::Read(), and XrdOssWrapDF::wrapDF.
|
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 80 of file XrdOssStatsFile.hh.
References XrdOssDF::Read(), and XrdOssWrapDF::wrapDF.
|
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 86 of file XrdOssStatsFile.hh.
References XrdOssDF::Read(), and XrdOssWrapDF::wrapDF.
|
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 92 of file XrdOssStatsFile.hh.
References XrdOssDF::ReadRaw(), and XrdOssWrapDF::wrapDF.
|
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 98 of file XrdOssStatsFile.hh.
References XrdOssDF::ReadV(), and XrdOssWrapDF::wrapDF.
|
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 115 of file XrdOssStatsFile.hh.
References XrdOssWrapDF::wrapDF, and XrdOssDF::Write().
|
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 121 of file XrdOssStatsFile.hh.
References XrdOssWrapDF::wrapDF, and XrdOssDF::Write().
|
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 127 of file XrdOssStatsFile.hh.
References XrdOssWrapDF::wrapDF, and XrdOssDF::WriteV().