|
XRootD
|
#include <XrdSutPFile.hh>
Collaboration diagram for XrdSutPFile:Public Member Functions | |
| XrdSutPFile (const char *n, kXR_int32 openmode=kPFEcreate, kXR_int32 createmode=0600, bool hashtab=1) | |
| XrdSutPFile (const XrdSutPFile &f) | |
| virtual | ~XrdSutPFile () |
| kXR_int32 | Browse (void *out=0) |
| kXR_int32 | Close (kXR_int32 d=-1) |
| bool | Init (const char *n, kXR_int32 openmode=kPFEcreate, kXR_int32 createmode=0600, bool hashtab=1) |
| bool | IsValid () const |
| kXR_int32 | LastError () const |
| const char * | LastErrStr () const |
| const char * | Name () const |
| kXR_int32 | Open (kXR_int32 opt, bool *wasopen=0, const char *nam=0, kXR_int32 createmode=0600) |
| kXR_int32 | ReadCount (const char *nm, int &cnt) |
| kXR_int32 | ReadEntry (const char *name, XrdSutPFEntry &ent, int opt=0) |
| kXR_int32 | ReadEntry (kXR_int32 ofs, XrdSutPFEntry &ent) |
| kXR_int32 | RemoveEntries (const char *name, char opt) |
| kXR_int32 | RemoveEntry (const char *name) |
| kXR_int32 | RemoveEntry (kXR_int32 ofs) |
| kXR_int32 | ResetCount (const char *nm) |
| kXR_int32 | RetrieveHeader (XrdSutPFHeader &hd) |
| kXR_int32 | SearchEntries (const char *name, char opt, kXR_int32 *ofs=0, kXR_int32 nofs=1) |
| kXR_int32 | SearchSpecialEntries (kXR_int32 *ofs=0, kXR_int32 nofs=1) |
| kXR_int32 | Trim (const char *fbak=0) |
| kXR_int32 | UpdateCount (const char *nm, int *cnt=0, int step=1, bool reset=0) |
| kXR_int32 | UpdateHeader (XrdSutPFHeader hd) |
| kXR_int32 | WriteEntry (XrdSutPFEntry ent) |
Friends | |
| class | XrdSutPFCache |
Definition at line 121 of file XrdSutPFile.hh.
| XrdSutPFile::XrdSutPFile | ( | const char * | n, |
| kXR_int32 | openmode = kPFEcreate, | ||
| kXR_int32 | createmode = 0600, | ||
| bool | hashtab = 1 ) |
Definition at line 187 of file XrdSutPFile.cc.
References Init().
Referenced by XrdSutPFile(), and XrdSutPFCache.
Here is the call graph for this function:
Here is the caller graph for this function:| XrdSutPFile::XrdSutPFile | ( | const XrdSutPFile & | f | ) |
Definition at line 207 of file XrdSutPFile.cc.
References XrdSutPFile().
Here is the call graph for this function:
|
virtual |
Definition at line 221 of file XrdSutPFile.cc.
References Close().
Here is the call graph for this function:| kXR_int32 XrdSutPFile::Browse | ( | void * | out = 0 | ) |
Definition at line 1624 of file XrdSutPFile.cc.
References XrdSutPFBuf::buf, XrdSutPFEntry::buf1, XrdSutPFEntry::buf2, XrdSutPFEntry::buf3, XrdSutPFEntry::buf4, Close(), XrdSutPFEntry::cnt, XrdSutPFHeader::ctime, XrdSutPFEntInd::entofs, XrdSutPFHeader::entries, XrdSutPFHeader::fileID, XrdSutPFHeader::indofs, XrdSutPFHeader::itime, XrdSutPFHeader::jnksiz, kPFE_special, XrdSutPFBuf::len, XrdSutPFEntry::mtime, XrdSutPFEntInd::name, XrdSutPFEntInd::nxtofs, Open(), SearchSpecialEntries(), XrdSutPFEntry::status, XrdSutPFHeader::version, and XrdSutTimeString().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 450 of file XrdSutPFile.cc.
References close, Err, fcntl(), and kPFErrUnlocking.
Referenced by ~XrdSutPFile(), Browse(), XrdSutPFCache::Flush(), Init(), XrdSutPFCache::Load(), ReadEntry(), ReadEntry(), RemoveEntry(), RemoveEntry(), RetrieveHeader(), SearchEntries(), SearchSpecialEntries(), Trim(), UpdateCount(), UpdateHeader(), and WriteEntry().
Here is the call graph for this function:
Here is the caller graph for this function:| bool XrdSutPFile::Init | ( | const char * | n, |
| kXR_int32 | openmode = kPFEcreate, | ||
| kXR_int32 | createmode = 0600, | ||
| bool | hashtab = 1 ) |
Definition at line 236 of file XrdSutPFile.cc.
References Close(), Err, kDefFileID, kPFEcreate, kPFEopen, kPFErrNoFile, kXrdIFVersion, Open(), and stat.
Referenced by XrdSutPFile(), and main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 170 of file XrdSutPFile.hh.
Referenced by XrdSutPFCache::Flush(), XrdSutPFCache::Load(), and main().
Here is the caller graph for this function:
|
inline |
Definition at line 172 of file XrdSutPFile.hh.
Referenced by main().
Here is the caller graph for this function:
|
inline |
Definition at line 173 of file XrdSutPFile.hh.
Referenced by XrdSutPFCache::Flush(), and XrdSutPFCache::Load().
Here is the caller graph for this function:
|
inline |
Definition at line 168 of file XrdSutPFile.hh.
Referenced by GetEntry(), main(), and RemoveEntries().
Here is the caller graph for this function:| kXR_int32 XrdSutPFile::Open | ( | kXR_int32 | opt, |
| bool * | wasopen = 0, | ||
| const char * | nam = 0, | ||
| kXR_int32 | createmode = 0600 ) |
Definition at line 300 of file XrdSutPFile.cc.
References XrdOucString::c_str(), close, Err, fcntl(), kMaxLockTries, kPFErrBadInputs, kPFErrBadOp, kPFErrFileAlreadyOpen, kPFErrFileLocked, kPFErrFileOpen, kPFErrLocking, kPFErrNoFile, kPFErrStat, open, and stat.
Referenced by Browse(), Init(), ReadEntry(), ReadEntry(), RemoveEntry(), RemoveEntry(), RetrieveHeader(), SearchEntries(), SearchSpecialEntries(), Trim(), UpdateCount(), UpdateHeader(), and WriteEntry().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 184 of file XrdSutPFile.hh.
References UpdateCount().
Here is the call graph for this function:| kXR_int32 XrdSutPFile::ReadEntry | ( | const char * | name, |
| XrdSutPFEntry & | ent, | ||
| int | opt = 0 ) |
Definition at line 909 of file XrdSutPFile.cc.
References Close(), XrdSutPFEntInd::entofs, Err, XrdSutPFHeader::indofs, XrdSutPFHeader::itime, kPFErrBadInputs, XrdOucString::matches(), XrdSutPFEntInd::name, XrdSutPFEntInd::nxtofs, Open(), XrdSutPFEntry::Reset(), and XrdSutPFEntry::SetName().
Referenced by XrdSutPFCache::Flush(), GetEntry(), and main().
Here is the call graph for this function:
Here is the caller graph for this function:| kXR_int32 XrdSutPFile::ReadEntry | ( | kXR_int32 | ofs, |
| XrdSutPFEntry & | ent ) |
Definition at line 1042 of file XrdSutPFile.cc.
References Close(), XrdSutPFEntInd::entofs, Err, kPFErrBadInputs, XrdSutPFEntInd::name, Open(), and XrdSutPFEntry::SetName().
Here is the call graph for this function:| kXR_int32 XrdSutPFile::RemoveEntries | ( | const char * | name, |
| char | opt ) |
Definition at line 2014 of file XrdSutPFile.cc.
References DEBUG, EPNAME, Name(), RemoveEntry(), and SearchEntries().
Here is the call graph for this function:| kXR_int32 XrdSutPFile::RemoveEntry | ( | const char * | name | ) |
Definition at line 1080 of file XrdSutPFile.cc.
References Close(), XrdSutPFHeader::ctime, XrdSutPFEntInd::entofs, XrdSutPFHeader::entries, XrdSutPFEntInd::entsiz, Err, XrdSutPFHeader::indofs, XrdSutPFHeader::itime, XrdSutPFHeader::jnksiz, kPFE_inactive, kPFErrBadInputs, kPFErrSeek, lseek, XrdSutPFEntInd::name, XrdSutPFEntInd::nxtofs, Open(), and write.
Referenced by main(), and RemoveEntries().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1193 of file XrdSutPFile.cc.
References Close(), XrdSutPFHeader::ctime, XrdSutPFEntInd::entofs, XrdSutPFHeader::entries, XrdSutPFEntInd::entsiz, Err, XrdSutPFHeader::itime, XrdSutPFHeader::jnksiz, kPFE_inactive, kPFErrBadInputs, kPFErrSeek, lseek, Open(), and write.
Here is the call graph for this function:
|
inline |
Definition at line 183 of file XrdSutPFile.hh.
References UpdateCount().
Here is the call graph for this function:| kXR_int32 XrdSutPFile::RetrieveHeader | ( | XrdSutPFHeader & | hd | ) |
Definition at line 503 of file XrdSutPFile.cc.
References Close(), and Open().
Referenced by Trim().
Here is the call graph for this function:
Here is the caller graph for this function:| kXR_int32 XrdSutPFile::SearchEntries | ( | const char * | name, |
| char | opt, | ||
| kXR_int32 * | ofs = 0, | ||
| kXR_int32 | nofs = 1 ) |
Definition at line 2052 of file XrdSutPFile.cc.
References XrdOucString::assign(), Close(), XrdSutPFEntInd::entofs, Err, XrdSutPFHeader::indofs, kPFErrBadInputs, XrdOucString::matches(), XrdSutPFEntInd::name, XrdSutPFEntInd::nxtofs, and Open().
Referenced by main(), and RemoveEntries().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 2134 of file XrdSutPFile.cc.
References Close(), XrdSutPFEntInd::entofs, XrdSutPFHeader::indofs, kPFE_special, XrdSutPFEntInd::nxtofs, Open(), and XrdSutPFEntry::status.
Referenced by Browse().
Here is the call graph for this function:
Here is the caller graph for this function:| kXR_int32 XrdSutPFile::Trim | ( | const char * | fbak = 0 | ) |
Definition at line 1795 of file XrdSutPFile.cc.
References Close(), XrdSutPFHeader::ctime, DEBUG, XrdSutPFEntInd::entofs, EPNAME, Err, XrdSutPFHeader::indofs, XrdSutPFHeader::itime, XrdSutPFHeader::jnksiz, kPFErrFileRename, kPFErrOutOfMemory, kPFErrSeek, lseek, XrdSutPFEntInd::nxtofs, Open(), rename, and RetrieveHeader().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| kXR_int32 XrdSutPFile::UpdateCount | ( | const char * | nm, |
| int * | cnt = 0, | ||
| int | step = 1, | ||
| bool | reset = 0 ) |
Definition at line 795 of file XrdSutPFile.cc.
References Close(), XrdSutPFEntry::cnt, XrdSutPFEntInd::entofs, Err, XrdSutPFHeader::indofs, XrdSutPFHeader::itime, kPFErrBadInputs, XrdSutPFEntry::mtime, XrdSutPFEntInd::name, XrdSutPFEntInd::nxtofs, and Open().
Referenced by ReadCount(), and ResetCount().
Here is the call graph for this function:
Here is the caller graph for this function:| kXR_int32 XrdSutPFile::UpdateHeader | ( | XrdSutPFHeader | hd | ) |
Definition at line 484 of file XrdSutPFile.cc.
References Close(), and Open().
Here is the call graph for this function:| kXR_int32 XrdSutPFile::WriteEntry | ( | XrdSutPFEntry | ent | ) |
Definition at line 585 of file XrdSutPFile.cc.
References Close(), XrdSutPFHeader::ctime, XrdSutPFEntInd::entofs, XrdSutPFHeader::entries, XrdSutPFEntInd::entsiz, Err, XrdSutPFHeader::indofs, XrdSutPFHeader::itime, XrdSutPFHeader::jnksiz, kOfsCtime, kOfsItime, kOfsJnkSiz, kPFE_inactive, kPFErrBadInputs, kPFErrSeek, XrdSutPFEntry::Length(), lseek, XrdSutPFEntInd::name, XrdSutPFEntry::name, XrdSutPFEntInd::nxtofs, Open(), XrdSutPFEntInd::SetName(), and write.
Referenced by XrdSutPFCache::Flush(), and main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
friend |
Definition at line 123 of file XrdSutPFile.hh.
References XrdSutPFile(), kPFEcreate, and XrdSutPFCache.
Referenced by XrdSutPFCache.