#include <XrdPosixFile.hh>
|
| long long | addOffset (long long offs, int updtSz=0) |
| |
| bool | Close (XrdCl::XRootDStatus &Status) |
| |
| bool | Finalize (XrdCl::XRootDStatus *Status) |
| |
| long long | FSize () |
| |
| int | Fstat (struct stat &buf) |
| |
| const char * | Location () |
| |
| void | HandleResponse (XrdCl::XRootDStatus *status, XrdCl::AnyObject *response) |
| |
| void | isOpen () |
| |
| void | updLock () |
| |
| void | updUnLock () |
| |
| long long | Offset () |
| |
| const char * | Origin () |
| |
| const char * | Path () |
| |
| int | Read (char *Buff, long long Offs, int Len) |
| |
| void | Read (XrdOucCacheIOCB &iocb, char *buff, long long offs, int rlen) |
| |
| int | ReadV (const XrdOucIOVec *readV, int n) |
| |
| void | ReadV (XrdOucCacheIOCB &iocb, const XrdOucIOVec *readV, int n) |
| |
| long long | setOffset (long long offs) |
| |
| bool | Stat (XrdCl::XRootDStatus &Status, bool force=false) |
| |
| int | Sync () |
| |
| void | Sync (XrdOucCacheIOCB &iocb) |
| |
| int | Trunc (long long Offset) |
| |
| void | UpdtSize (size_t newsz) |
| |
| bool | Who (XrdPosixFile **fileP) |
| |
| int | Write (char *Buff, long long Offs, int Len) |
| |
| void | Write (XrdOucCacheIOCB &iocb, char *buff, long long offs, int wlen) |
| |
| | XrdPosixFile (bool &aOK, const char *path, XrdPosixCallBack *cbP=0, int Opts=0) |
| |
| | ~XrdPosixFile () |
| |
| bool | AssignFD (bool isStream=false) |
| |
| int | FDNum () |
| |
| void | Lock (bool wr=true) |
| |
| void | Ref () |
| |
| int | Refs () |
| |
| void | unRef () |
| |
| void | UnLock () |
| |
| virtual bool | Who (XrdPosixDir **dirP) |
| |
| | XrdPosixObject () |
| |
| virtual | ~XrdPosixObject () |
| |
| virtual void | Update (XrdOucCacheIO2 &iocp) |
| |
| virtual | ~XrdOucCacheIO2 () |
| |
| virtual XrdOucCacheIO * | Base () |
| |
| virtual XrdOucCacheIO * | Detach () |
| |
| virtual bool | ioActive () |
| |
| virtual void | Preread (long long Offset, int Length, int Opts=0) |
| |
| virtual void | Preread (aprParms &Parms) |
| |
| virtual | ~XrdOucCacheIO () |
| |
Public Member Functions inherited from XrdCl::ResponseHandler |
| virtual | ~ResponseHandler () |
| |
| virtual void | HandleResponseWithHosts (XRootDStatus *status, AnyObject *response, HostList *hostList) |
| |
| XrdPosixFile::XrdPosixFile |
( |
bool & |
aOK, |
|
|
const char * |
path, |
|
|
XrdPosixCallBack * |
cbP = 0, |
|
|
int |
Opts = 0 |
|
) |
| |
| XrdPosixFile::~XrdPosixFile |
( |
| ) |
|
| long long XrdPosixFile::addOffset |
( |
long long |
offs, |
|
|
int |
updtSz = 0 |
|
) |
| |
|
inline |
| static void* XrdPosixFile::DelayedDestroy |
( |
void * |
| ) |
|
|
static |
| static void XrdPosixFile::DelayedDestroy |
( |
XrdPosixFile * |
fp | ) |
|
|
static |
| long long XrdPosixFile::FSize |
( |
| ) |
|
|
inlinevirtual |
| int XrdPosixFile::Fstat |
( |
struct stat & |
sbuff | ) |
|
|
virtual |
Perform an fstat() operation (defaults to passthrough).
- Parameters
-
| sbuff | reference to the stat buffer to be filled in. Only fields st_size, st_blocks, st_mtime (st_atime and st_ctime may be set to st_mtime), st_ino, and st_mode need to be set. All other fields are preset and should not be changed. |
- Returns
- <0 - fstat failed, value is -errno. =0 - fstat succeeded, sbuff holds stat information. >0 - fstat could not be done, forward operation to next level.
Reimplemented from XrdOucCacheIO2.
Referenced by XrdPosixPrepIO::Fstat().
Called when a response to associated request arrives or an error occurs
- Parameters
-
| status | status of the request |
| response | an object associated with the response (request dependent) |
Reimplemented from XrdCl::ResponseHandler.
| void XrdPosixFile::isOpen |
( |
| ) |
|
| const char* XrdPosixFile::Location |
( |
| ) |
|
|
virtual |
Get the file's location (i.e. endpoint hostname and port)
- Returns
- A pointer to the file's location. It remains valid until the file is closed. A null string means the file is not open or is unknown.
Reimplemented from XrdOucCacheIO2.
| long long XrdPosixFile::Offset |
( |
| ) |
|
|
inline |
| const char* XrdPosixFile::Origin |
( |
| ) |
|
|
inline |
| const char* XrdPosixFile::Path |
( |
| ) |
|
|
inlinevirtual |
| int XrdPosixFile::Read |
( |
char * |
Buff, |
|
|
long long |
Offs, |
|
|
int |
Len |
|
) |
| |
|
virtual |
| void XrdPosixFile::Read |
( |
XrdOucCacheIOCB & |
iocb, |
|
|
char * |
buff, |
|
|
long long |
offs, |
|
|
int |
rlen |
|
) |
| |
|
virtual |
| int XrdPosixFile::ReadV |
( |
const XrdOucIOVec * |
readV, |
|
|
int |
n |
|
) |
| |
|
virtual |
| long long XrdPosixFile::setOffset |
( |
long long |
offs | ) |
|
|
inline |
| int XrdPosixFile::Sync |
( |
| ) |
|
|
virtual |
| int XrdPosixFile::Trunc |
( |
long long |
Offset | ) |
|
|
virtual |
| void XrdPosixFile::updLock |
( |
| ) |
|
|
inline |
| void XrdPosixFile::UpdtSize |
( |
size_t |
newsz | ) |
|
|
inline |
| void XrdPosixFile::updUnLock |
( |
| ) |
|
|
inline |
| int XrdPosixFile::Write |
( |
char * |
Buff, |
|
|
long long |
Offs, |
|
|
int |
Len |
|
) |
| |
|
virtual |
| void XrdPosixFile::Write |
( |
XrdOucCacheIOCB & |
iocb, |
|
|
char * |
buff, |
|
|
long long |
offs, |
|
|
int |
wlen |
|
) |
| |
|
virtual |
| long long XrdPosixFile::currOffset |
| bool XrdPosixFile::ddPosted |
|
static |
| char* XrdPosixFile::fOpen |
|
private |
| char* XrdPosixFile::fPath |
|
private |
| char XrdPosixFile::isStream |
|
private |
| const int XrdPosixFile::isStrm = 2 |
|
static |
| const int XrdPosixFile::isUpdt = 4 |
|
static |
| ino_t XrdPosixFile::myInode |
| mode_t XrdPosixFile::myMode |
| time_t XrdPosixFile::myMtime |
| dev_t XrdPosixFile::myRdev |
| size_t XrdPosixFile::mySize |
| int XrdPosixFile::numTries |
| const int XrdPosixFile::realFD = 1 |
|
static |
| char* XrdPosixFile::sfSFX |
|
static |
| short XrdPosixFile::sfSLN |
|
static |
The documentation for this class was generated from the following file: