xrootd
|
#include <XrdOssCsi.hh>
Classes | |
struct | puMapItem_t |
Public Member Functions | |
virtual int | Close (long long *retsz=0) |
virtual int | Open (const char *, int, mode_t, XrdOucEnv &) |
virtual off_t | getMmap (void **addr) |
virtual int | getFD () |
virtual void | Flush () |
Flush filesystem cached pages for this file (used for checksums). | |
virtual int | Fstat (struct stat *) |
virtual int | Fsync () |
virtual int | Fsync (XrdSfsAio *) |
virtual int | Ftruncate (unsigned long long) |
virtual ssize_t | Read (off_t, size_t) |
virtual ssize_t | Read (void *, off_t, size_t) |
virtual int | Read (XrdSfsAio *) |
virtual ssize_t | ReadRaw (void *, off_t, size_t) |
virtual ssize_t | ReadV (XrdOucIOVec *readV, int n) |
virtual ssize_t | Write (const void *, off_t, size_t) |
virtual int | Write (XrdSfsAio *) |
virtual ssize_t | WriteV (XrdOucIOVec *writeV, int n) |
virtual ssize_t | pgRead (void *, off_t, size_t, uint32_t *, uint64_t) |
virtual int | pgRead (XrdSfsAio *, uint64_t) |
virtual ssize_t | pgWrite (void *, off_t, size_t, uint32_t *, uint64_t) |
virtual int | pgWrite (XrdSfsAio *, uint64_t) |
XrdOssCsiFile (XrdOss *parent, const char *tid, XrdOssCsiConfig &cf) | |
virtual | ~XrdOssCsiFile () |
void | aioInc () |
void | aioDec () |
void | aioWait () |
int | VerificationStatus () |
XrdOssCsiPages * | Pages () |
Public Member Functions inherited from XrdOssDFHandler | |
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 int | isCompressed (char *cxidp=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 () |
Static Public Member Functions | |
static int | mapRelease (std::shared_ptr< puMapItem_t > &, XrdSysMutexHelper *plck=NULL) |
static void | mapTake (const std::string &, std::shared_ptr< puMapItem_t > &, bool create=true) |
Static Public Attributes | |
static XrdSysMutex | pumtx_ |
static std::unordered_map< std::string, std::shared_ptr< puMapItem_t > > | pumap_ |
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 |
Private Member Functions | |
int | resyncSizes () |
int | pageMapClose () |
int | pageAndFileOpen (const char *, const int, const int, const mode_t, XrdOucEnv &) |
int | createPageUpdater (int, XrdOucEnv &) |
Private Attributes | |
XrdOss * | parentOss_ |
const char * | tident |
std::shared_ptr< puMapItem_t > | pmi_ |
XrdOssCsiFileAioStore | aiostore_ |
XrdOssCsiConfig & | config_ |
bool | rdonly_ |
XrdSysCondVar | aioCntCond_ |
int | aioCnt_ |
int | aioCntWaiters_ |
Friends | |
class | XrdOssCsiFileAio |
class | XrdOssCsiFileAioJob |
Additional Inherited Members | |
Protected Attributes inherited from XrdOssDFHandler | |
XrdOssDF * | successor_ |
Protected Attributes inherited from XrdOssDF | |
const char * | tident |
off_t | pgwEOF |
int | fd |
uint16_t | dfType |
short | rsvd |
|
inline |
|
virtual |
|
inline |
References aioCnt_, aioCntCond_, aioCntWaiters_, and XrdSysCondVar::Broadcast().
Referenced by XrdOssCsiFileAio::Recycle().
|
inline |
References aioCnt_, aioCntCond_, aioCntWaiters_, and XrdSysCondVar::Wait().
Referenced by XrdOssCsiFileAio::Init().
|
inline |
References aioCnt_, aioCntCond_, aioCntWaiters_, XrdSysCondVar::Broadcast(), and XrdSysCondVar::Wait().
|
virtual |
Close a directory or file.
retsz | If not nil, where the size of the file is to be returned. |
Reimplemented from XrdOssDFHandler.
|
private |
|
virtual |
Flush filesystem cached pages for this file (used for checksums).
Reimplemented from XrdOssDFHandler.
|
virtual |
Return state information for this file.
buf | - Pointer to the structure where info it to be returned. |
Reimplemented from XrdOssDFHandler.
|
virtual |
Synchronize associated file with media (synchronous).
Reimplemented from XrdOssDFHandler.
|
virtual |
Synchronize associated file with media (asynchronous).
aiop | - Pointer to async I/O request object. |
Reimplemented from XrdOssDFHandler.
|
virtual |
Set the size of the associated file.
flen | - The new size of the file. |
Reimplemented from XrdOssDFHandler.
|
inlinevirtual |
Return the underlying file descriptor.
Reimplemented from XrdOssDFHandler.
|
inlinevirtual |
Return the memory mapped characteristics of the file.
addr | - Pointer to where the memory mapped address is to be returned. |
Reimplemented from XrdOssDFHandler.
|
static |
|
static |
|
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 XrdOssDFHandler.
|
private |
|
private |
|
inline |
References pmi_.
Referenced by XrdOssCsiFileAioJob::DoItRead1(), XrdOssCsiFileAioJob::DoItRead2(), and XrdOssCsiFileAioJob::DoItWrite1().
|
virtual |
Reimplemented from XrdOssDFHandler.
|
virtual |
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 XrdOssDFHandler.
|
virtual |
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 XrdOssDFHandler.
|
virtual |
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 XrdOssDFHandler.
|
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 XrdOssDFHandler.
|
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 XrdOssDFHandler.
|
virtual |
Read file bytes using asynchronous I/O.
aiop | - Pointer to async I/O object controlling the I/O. |
Reimplemented from XrdOssDFHandler.
|
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 XrdOssDFHandler.
|
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 XrdOssDFHandler.
|
private |
Referenced by XrdOssCsiFileAioJob::DoItWrite1(), and XrdOssCsiFileAioJob::DoItWrite2().
int XrdOssCsiFile::VerificationStatus | ( | ) |
|
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 XrdOssDFHandler.
|
virtual |
Write file bytes using asynchronous I/O.
aiop | - Pointer to async I/O object controlling the I/O. |
Reimplemented from XrdOssDFHandler.
|
virtual |
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 XrdOssDFHandler.
|
friend |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
Referenced by Pages().
|
static |
|
static |
|
private |
|
private |