#include <XrdOfsChkPnt.hh>
|
| int | Failed (const char *opn, int rc, bool *readok) |
| |
| XrdOfsChkPnt::XrdOfsChkPnt |
( |
XrdOssDF & |
ossfl, |
|
|
const char * |
lfn, |
|
|
const char * |
ckpfn = 0 |
|
) |
| |
|
inline |
Constructor and destructor.
- Parameters
-
| ossfl | - reference to the Oss File Object for the source file. |
| lfn | - pointer to the source file path. |
| ckpfn | - pointer to optional prexisting checkpoint file. |
| virtual XrdOfsChkPnt::~XrdOfsChkPnt |
( |
| ) |
|
|
inlinevirtual |
| int XrdOfsChkPnt::Create |
( |
| ) |
|
|
virtual |
Create a checkpoint.
- Returns
- 0 upon success and -errno upon failure.
Implements XrdOucChkPnt.
| int XrdOfsChkPnt::Delete |
( |
| ) |
|
|
virtual |
Delete a checkpoint.
- Returns
- 0 upon success and -errno upon failure.
Implements XrdOucChkPnt.
| int XrdOfsChkPnt::Failed |
( |
const char * |
opn, |
|
|
int |
rc, |
|
|
bool * |
readok |
|
) |
| |
|
private |
| void XrdOfsChkPnt::Finished |
( |
| ) |
|
|
inlinevirtual |
Indicate that the checkpointing is finished. Any outstanding checkpoint should be delete and the object should delete itself if necessary.
Implements XrdOucChkPnt.
| int XrdOfsChkPnt::Query |
( |
struct iov & |
range | ) |
|
|
virtual |
Query checkpoint limits.
- Parameters
-
| range | - reference to where limits are placed. range.length - holds maximum checkpoint length allowed. |
- Returns
- 0 upon success and -errno upon failure.
Implements XrdOucChkPnt.
| int XrdOfsChkPnt::Restore |
( |
bool * |
readok = 0 | ) |
|
|
virtual |
Restore a checkpoint.
- Parameters
-
| readok | - When not nil and an error occurs readok is set true if read access is still allowed; otherwise no access should be allowed. |
- Returns
- 0 upon success and -errno upon failure.
Implements XrdOucChkPnt.
| int XrdOfsChkPnt::Truncate |
( |
struct iov *& |
range | ) |
|
|
virtual |
Truncate a file to a specific size.
- Parameters
-
| range | - reference to the file truncate size in offset. |
- Returns
- 0 upon success and -errno upon failure.
Implements XrdOucChkPnt.
| int XrdOfsChkPnt::Write |
( |
struct iov *& |
range, |
|
|
int |
rnum |
|
) |
| |
|
virtual |
Write data to a checkpointed file.
- Parameters
-
| range | - reference to the file pieces to write. |
| rnum | - number of elements in "range". |
- Returns
- 0 upon success and -errno upon failure.
Implements XrdOucChkPnt.
| int64_t XrdOfsChkPnt::fSize |
|
private |
| const char* XrdOfsChkPnt::lFN |
|
private |
The documentation for this class was generated from the following file: