#include <XrdOssMirageXAttr.hh>
Public Member Functions | |
| XrdOssMirageXAttr ()=default | |
| virtual | ~XrdOssMirageXAttr ()=default |
| virtual int | Del (const char *Aname, const char *Path, int fd=-1) override |
| virtual void | Free (AList *aPL) override |
| virtual int | Get (const char *Aname, void *Aval, int Avsz, const char *Path, int fd=-1) override |
| virtual int | List (AList **aPL, const char *Path, int fd=-1, int getSz=0) override |
| virtual int | Set (const char *Aname, const void *Aval, int Avsz, const char *Path, int fd=-1, int isNew=0) override |
| void | setOss (XrdOssMirage &oss) |
| Public Member Functions inherited from XrdSysXAttr | |
| XrdSysXAttr () | |
| Constructor and Destructor. | |
| virtual | ~XrdSysXAttr () |
| virtual int | Copy (const char *iPath, int iFD, const char *oPath, int oFD, const char *Aname=0) |
| virtual XrdSysError * | SetMsgRoute (XrdSysError *errP) |
Additional Inherited Members | |
| Protected Attributes inherited from XrdSysXAttr | |
| XrdSysError * | Say |
Definition at line 10 of file XrdOssMirageXAttr.hh.
|
default |
|
virtualdefault |
References Path.
|
overridevirtual |
Remove an extended attribute.
| Aname | -> The attribute name. |
| Path | -> Path of the file whose attribute is to be removed. |
| fd | If >=0 is the file descriptor of the opened subject file. |
Implements XrdSysXAttr.
Definition at line 20 of file XrdOssMirageXAttr.cc.
References Path.
|
overridevirtual |
Release storage occupied by the Alist structure returned by List().
| aPL | -> The first element of the AList structure. |
Implements XrdSysXAttr.
Definition at line 51 of file XrdOssMirageXAttr.cc.
|
overridevirtual |
Get an attribute value and its size.
| Aname | -> The attribute name. |
| Aval | -> Buffer to receive the attribute value. |
| Avsz | Length of the buffer in bytes. Only up to this number of bytes should be returned. However, should Avsz be zero the the size of the attribute value should be returned and the Aval argument should be ignored. |
| Path | -> Path of the file whose attribute is to be fetched. |
| fd | -> If >=0 is the file descriptor of the opened subject file. |
Implements XrdSysXAttr.
Definition at line 55 of file XrdOssMirageXAttr.cc.
References Path.
|
overridevirtual |
Get all of the attributes associated with a file.
| aPL | -> the pointer to hold the first element of AList. The storage occupied by the returned AList must be released by calling Free(). |
| Path | -> Path of the file whose attributes are t be returned. |
| fd | -> If >=0 is the file descriptor of the opened subject file. |
| getSz | When != 0 then the size of the maximum attribute value should be returned. Otherwise, upon success 0 is returned. |
Implements XrdSysXAttr.
Definition at line 90 of file XrdOssMirageXAttr.cc.
References Path.
|
overridevirtual |
Set an attribute.
| Aname | -> The attribute name. |
| Aval | -> Buffer holding the attribute value. |
| Avsz | Length of the buffer in bytes. This is the length of the attribute value which may contain binary data. |
| Path | -> Path of the file whose attribute is to be set. |
| fd | -> If >=0 is the file descriptor of the opened subject file. |
| isNew | When !0 then the attribute must not exist (i.e. new). Otherwise, if it does exist, the value is replaced. In either case, if it does not exist it should be created. |
Implements XrdSysXAttr.
Definition at line 95 of file XrdOssMirageXAttr.cc.
References Path.
| void XrdOssMirageXAttr::setOss | ( | XrdOssMirage & | oss | ) |
Definition at line 134 of file XrdOssMirageXAttr.cc.