|
xrootd
|


Public Member Functions | |
| int | Active () |
| void | isOpen () |
| long long | Offset () |
| long long | addOffset (long long offs, int updtSz=0) |
| const char * | Path () |
| int | Read (char *Buff, long long Offs, int Len) |
| int | Sync () |
| int | Trunc (long long Offset) |
| int | Write (char *Buff, long long Offs, int Len) |
| long long | setOffset (long long offs) |
| void | Lock () |
| void | UnLock () |
| void | OpenComplete (XrdClientAbs *clientP, void *cbArg, bool res) |
| XrdPosixFile (int fd, const char *path, int oMode, XrdPosixCallBack *cbP=0, int Opts=realFD) | |
| ~XrdPosixFile () | |
Public Attributes | |
| XrdOucCacheIO * | XCio |
| XrdClient * | XClient |
| XrdClientStatInfo | stat |
| XrdPosixCallBack * | theCB |
| XrdPosixFile * | Next |
| int | FD |
| int | cbResult |
Static Public Attributes | |
| static XrdOucCache * | CacheR = 0 |
| static XrdOucCache * | CacheW = 0 |
| static char * | sfSFX = 0 |
| static int | sfSLN = 0 |
| static const int | realFD = 1 |
| static const int | isSync = 2 |
Private Attributes | |
| XrdSysMutex | myMutex |
| long long | currOffset |
| const char * | iPath |
| short | doClose |
| short | cbDone |
| short | fdClose |
| XrdPosixFile::XrdPosixFile | ( | int | fd, |
| const char * | path, | ||
| int | oMode, | ||
| XrdPosixCallBack * | cbP = 0, |
||
| int | Opts = realFD |
||
| ) |
References isSync, XClient, stat, XrdClientStatInfo::size, iPath, XCio, sfSFX, sfSLN, kXR_open_read, CacheR, XrdOucCache::Attach(), CacheW, kXR_new, and kXR_delete.
| XrdPosixFile::~XrdPosixFile | ( | ) |
References XClient, XCio, XrdOucCacheIO::Detach(), doClose, XrdClient::Close(), FD, fdClose, and close.
| int XrdPosixFile::Active | ( | ) | [inline] |
References doClose.
Referenced by XrdPosixXrootd::findFP().
| long long XrdPosixFile::addOffset | ( | long long | offs, |
| int | updtSz = 0 |
||
| ) | [inline] |
References currOffset, stat, and XrdClientStatInfo::size.
Referenced by XrdPosixXrootd::Lseek(), XrdPosixXrootd::Read(), and XrdPosixXrootd::Write().
| void XrdPosixFile::isOpen | ( | ) | [inline] |
References doClose.
Referenced by XrdPosixXrootd::Open(), and XrdPosixXrootd::OpenCB().
| void XrdPosixFile::Lock | ( | ) | [inline] |
References myMutex, and XrdSysMutex::Lock().
Referenced by XrdPosixXrootd::findFP().
| long long XrdPosixFile::Offset | ( | ) | [inline] |
References currOffset.
Referenced by XrdPosixXrootd::Read(), and XrdPosixXrootd::Write().
| void XrdPosixFile::OpenComplete | ( | XrdClientAbs * | clientP, |
| void * | cbArg, | ||
| bool | res | ||
| ) | [inline, virtual] |
Implements XrdClientCallback.
References cbDone, and XrdPosixXrootd::OpenCB().
| const char* XrdPosixFile::Path | ( | ) | [inline, virtual] |
Implements XrdOucCacheIO.
References iPath, XClient, XrdClientAbs::GetCurrentUrl(), XrdClientUrlInfo::GetUrl(), and XrdOucString::c_str().
| int XrdPosixFile::Read | ( | char * | Buff, |
| long long | Offs, | ||
| int | Len | ||
| ) | [inline, virtual] |
Implements XrdOucCacheIO.
References XClient, and XrdClient::Read().
| long long XrdPosixFile::setOffset | ( | long long | offs | ) | [inline] |
References currOffset.
Referenced by XrdPosixXrootd::Lseek().
| int XrdPosixFile::Sync | ( | ) | [inline, virtual] |
Implements XrdOucCacheIO.
References XClient, and XrdClient::Sync().
| int XrdPosixFile::Trunc | ( | long long | Offset | ) | [inline, virtual] |
Implements XrdOucCacheIO.
References XClient, and XrdClient::Truncate().
| void XrdPosixFile::UnLock | ( | ) | [inline] |
References myMutex, and XrdSysMutex::UnLock().
Referenced by XrdPosixXrootd::Close(), XrdPosixXrootd::endPoint(), XrdPosixXrootd::Fstat(), XrdPosixXrootd::Fsync(), XrdPosixXrootd::Ftruncate(), XrdPosixXrootd::Lseek(), XrdPosixXrootd::Pread(), XrdPosixXrootd::Pwrite(), XrdPosixXrootd::Read(), XrdPosixXrootd::Write(), and XrdPosixXrootd::Fault().
| int XrdPosixFile::Write | ( | char * | Buff, |
| long long | Offs, | ||
| int | Len | ||
| ) | [inline, virtual] |
Implements XrdOucCacheIO.
References XClient, and XrdClient::Write().
XrdOucCache * XrdPosixFile::CacheR = 0 [static] |
Referenced by XrdPosixFile(), and XrdPosixXrootd::initEnv().
XrdOucCache * XrdPosixFile::CacheW = 0 [static] |
Referenced by XrdPosixFile().
short XrdPosixFile::cbDone [private] |
Referenced by OpenComplete().
Referenced by XrdPosixXrootd::OpenCB().
long long XrdPosixFile::currOffset [private] |
Referenced by Offset(), addOffset(), and setOffset().
short XrdPosixFile::doClose [private] |
Referenced by Active(), isOpen(), and ~XrdPosixFile().
| int XrdPosixFile::FD |
Referenced by ~XrdPosixFile(), XrdPosixXrootd::Close(), and XrdPosixXrootd::OpenCB().
short XrdPosixFile::fdClose [private] |
Referenced by ~XrdPosixFile().
const char* XrdPosixFile::iPath [private] |
Referenced by Path(), and XrdPosixFile().
const int XrdPosixFile::isSync = 2 [static] |
Referenced by XrdPosixFile().
XrdSysMutex XrdPosixFile::myMutex [private] |
Referenced by XrdPosixXrootd::OpenCB().
const int XrdPosixFile::realFD = 1 [static] |
Referenced by XrdPosixXrootd::Open().
char * XrdPosixFile::sfSFX = 0 [static] |
Referenced by XrdPosixFile().
int XrdPosixFile::sfSLN = 0 [static] |
Referenced by XrdPosixFile().
Referenced by XrdPosixXrootd::OpenCB().
Referenced by Path(), Read(), Sync(), Trunc(), Write(), XrdPosixFile(), ~XrdPosixFile(), XrdPosixXrootd::endPoint(), XrdPosixXrootd::Open(), XrdPosixXrootd::OpenCB(), and XrdPosixXrootd::Fault().
1.7.5