![]() |
XRootD
|
#include <XrdCksManOss.hh>
Public Member Functions | |
XrdCksManOss (XrdOss *ossX, XrdSysError *erP, int iosz, XrdVersionInfo &vInfo, bool autoload=false) | |
virtual | ~XrdCksManOss () |
virtual int | Calc (const char *Lfn, XrdCksData &Cks, int doSet=1) |
virtual int | Del (const char *Lfn, XrdCksData &Cks) |
virtual int | Get (const char *Lfn, XrdCksData &Cks) |
virtual char * | List (const char *Lfn, char *Buff, int Blen, char Sep=' ') |
virtual int | Set (const char *Lfn, XrdCksData &Cks, int myTime=0) |
virtual int | Ver (const char *Lfn, XrdCksData &Cks) |
![]() | |
XrdCksManager (XrdSysError *erP, int iosz, XrdVersionInfo &vInfo, bool autoload=false) | |
virtual | ~XrdCksManager () |
virtual int | Config (const char *Token, char *Line) |
virtual int | Init (const char *ConfigFN, const char *AddCalc=0) |
virtual const char * | Name (int seqNum=0) |
virtual XrdCksCalc * | Object (const char *name) |
virtual int | Size (const char *Name=0) |
![]() | |
XrdCks (XrdSysError *erP) | |
Constructor. More... | |
virtual | ~XrdCks () |
Destructor. More... | |
virtual int | Calc (const char *Xfn, XrdCksData &Cks, XrdCksPCB *pcbP, int doSet=1) |
virtual int | Ver (const char *Xfn, XrdCksData &Cks, XrdCksPCB *pcbP) |
Protected Member Functions | |
virtual int | Calc (const char *Lfn, time_t &MTime, XrdCksCalc *CksObj) |
virtual int | ModTime (const char *Pfn, time_t &MTime) |
Additional Inherited Members | |
![]() | |
XrdSysError * | eDest |
Definition at line 43 of file XrdCksManOss.hh.
XrdCksManOss::XrdCksManOss | ( | XrdOss * | ossX, |
XrdSysError * | erP, | ||
int | iosz, | ||
XrdVersionInfo & | vInfo, | ||
bool | autoload = false |
||
) |
Definition at line 86 of file XrdCksManOss.cc.
References XrdCks::eDest, and XrdOfsPrepGPIReal::ossP.
|
inlinevirtual |
Definition at line 61 of file XrdCksManOss.hh.
|
protectedvirtual |
Reimplemented from XrdCksManager.
Definition at line 115 of file XrdCksManOss.cc.
References XrdCks::eDest, XrdSysError::Emsg(), XrdOss::newFile(), XrdOfsPrepGPIReal::ossP, Stat, stat(), and XrdCksCalc::Update().
|
virtual |
Calculate a new checksum for a physical file using the checksum algorithm named in the Cks parameter.
Xfn | The logical or physical name of the file to be checksumed. |
Cks | For input, it specifies the checksum algorithm to be used. For output, the checksum value is returned upon success. |
doSet | When true, the new value must replace any existing value in the Xfn's extended file attributes. |
pcbP | In the second form, the pointer to the callback object. A nil pointer does not invoke any callback. |
Reimplemented from XrdCksManager.
Definition at line 99 of file XrdCksManOss.cc.
References XrdCksManager::Calc(), and LfnPfn::Pfn.
|
virtual |
Delete the checksum from the Xfn's xattrs.
Xfn | The logical or physical name of the file to be checksumed. |
Cks | Specifies the checksum type to delete. |
Reimplemented from XrdCksManager.
Definition at line 171 of file XrdCksManOss.cc.
References XrdCksManager::Del(), and LfnPfn::Pfn.
|
virtual |
Retreive the checksum from the Xfn's xattrs and return it and indicate whether or not it is stale (i.e. the file modification has changed or the name and length are not the expected values).
Xfn | The logical or physical name of the file to be checksumed. |
Cks | For input, it specifies the checksum type to return. For output, the checksum value is returned upon success. |
Reimplemented from XrdCksManager.
Definition at line 189 of file XrdCksManOss.cc.
References XrdCksManager::Get(), and LfnPfn::Pfn.
|
virtual |
List names of the checksums associated with a Xfn or all supported ones.
Xfn | The logical or physical file name whose checksum names are to be returned. When Xfn is null, return all supported checksum algorithm names. |
Buff | Points to a buffer, at least 64 bytes in length, to hold a "Sep" separated list of checksum names. |
Blen | The length of the buffer. |
Sep | The separation character to be used between adjacent names. |
Reimplemented from XrdCksManager.
Definition at line 207 of file XrdCksManOss.cc.
References XrdCksManager::List(), and LfnPfn::Pfn.
|
protectedvirtual |
Reimplemented from XrdCksManager.
Definition at line 225 of file XrdCksManOss.cc.
References XrdOfsPrepGPIReal::ossP, Stat, stat(), and XrdOss::Stat().
|
virtual |
Set a file's checksum in the extended attributes along with the file's mtime and the time of setting.
Xfn | The logical or physical name of the file to be set. |
Cks | Specifies the checksum name and value. |
myTime | When true then the fmTime and gmTime in the Cks structure are to be used; as opposed to the current time. |
Reimplemented from XrdCksManager.
Definition at line 240 of file XrdCksManOss.cc.
References LfnPfn::Pfn, and XrdCksManager::Set().
|
virtual |
Retreive the checksum from the Xfn's xattrs and compare it to the supplied checksum. If the checksum is not available or is stale, a new checksum is calculated and written to the extended attributes.
Xfn | The logical or physical name of the file to be verified. |
Cks | Specifies the checksum name and value. |
pcbP | In the second form, the pointer to the callback object. A nil pointer does not invoke any callback. |
Reimplemented from XrdCksManager.
Definition at line 258 of file XrdCksManOss.cc.
References XrdCksManager::Ver().