![]() |
XRootD
|
#include <XrdOfsPoscq.hh>
Classes | |
struct | recEnt |
struct | Request |
Public Member Functions | |
XrdOfsPoscq (XrdSysError *erp, XrdOss *oss, const char *fn, int sv=1) | |
~XrdOfsPoscq () | |
int | Add (const char *Tident, const char *Lfn, bool isNew) |
int | Commit (const char *Lfn, int Offset) |
int | Del (const char *Lfn, int Offset, int Unlink=0) |
recEnt * | Init (int &Ok) |
int | Num () |
Static Public Member Functions | |
static recEnt * | List (XrdSysError *Say, const char *theFN) |
Static Public Attributes | |
static const int | ReqOffs = 64 |
static const int | ReqSize = sizeof(Request) |
Definition at line 41 of file XrdOfsPoscq.hh.
struct XrdOfsPoscq::Request |
Definition at line 45 of file XrdOfsPoscq.hh.
Class Members | ||
---|---|---|
long long | addT | |
char | LFN[1024] | |
char | Reserved[24] | |
char | User[288] |
XrdOfsPoscq::XrdOfsPoscq | ( | XrdSysError * | erp, |
XrdOss * | oss, | ||
const char * | fn, | ||
int | sv = 1 ) |
Definition at line 53 of file XrdOfsPoscq.cc.
|
inline |
Definition at line 80 of file XrdOfsPoscq.hh.
int XrdOfsPoscq::Add | ( | const char * | Tident, |
const char * | Lfn, | ||
bool | isNew ) |
Definition at line 72 of file XrdOfsPoscq.cc.
References XrdOfsPoscq::Request::addT, XrdOfsPoscq::Request::LFN, ReqSize, XrdOfsPoscq::Request::Reserved, Stat, stat, strlcpy(), and XrdOfsPoscq::Request::User.
int XrdOfsPoscq::Commit | ( | const char * | Lfn, |
int | Offset ) |
Definition at line 132 of file XrdOfsPoscq.cc.
int XrdOfsPoscq::Del | ( | const char * | Lfn, |
int | Offset, | ||
int | Unlink = 0 ) |
Definition at line 159 of file XrdOfsPoscq.cc.
XrdOfsPoscq::recEnt * XrdOfsPoscq::Init | ( | int & | Ok | ) |
Definition at line 207 of file XrdOfsPoscq.cc.
References fstat, ftruncate, XrdOfsPoscq::Request::LFN, Mode, pread, ReqOffs, ReqSize, S_IAMB, Stat, stat, and XRDSFS_POSCPEND.
|
static |
Definition at line 264 of file XrdOfsPoscq.cc.
References close, fstat, XrdOfsPoscq::Request::LFN, pread, ReqOffs, ReqSize, Say, and stat.
|
inline |
Definition at line 76 of file XrdOfsPoscq.hh.
|
static |
Definition at line 53 of file XrdOfsPoscq.hh.
|
static |
Definition at line 54 of file XrdOfsPoscq.hh.