![]() |
XRootD
|
#include <XrdOssAt.hh>
Public Member Functions | |
XrdOssAt (XrdOss &ossfs) | |
~XrdOssAt () | |
Destructor. More... | |
int | Opendir (XrdOssDF &atDir, const char *path, XrdOucEnv &env, XrdOssDF *&ossDF) |
int | OpenRO (XrdOssDF &atDir, const char *path, XrdOucEnv &env, XrdOssDF *&ossDF) |
int | Remdir (XrdOssDF &atDir, const char *path) |
int | Stat (XrdOssDF &atDir, const char *path, struct stat &buf, int opts=0) |
int | Unlink (XrdOssDF &atDir, const char *path) |
Static Public Attributes | |
static const int | At_dInfo = 0x00000001 |
This class defines the object that handles extended operations that are relative to an open directory. Create a single instance of this class by passing it the pointer to the asociated file system (XrdOss) and use the methods herein to effect various operations relative to an XrdOss directory.
Definition at line 61 of file XrdOssAt.hh.
|
inline |
Constructor
ossfs | - Reference to the OSS system interface. |
Definition at line 139 of file XrdOssAt.hh.
|
inline |
Open a directory relative to an open directory.
atDir | - Reference to the directory object to use. |
path | - Pointer to the relative path of the directory to be opened. |
env | - Reference to environmental information. |
ossDF | - Reference to where the directory object pointer is to be returned upon success. |
Definition at line 96 of file XrdOssAt.cc.
References BOILER_PLATE, XrdOssDF::getTID(), and OPEN_AT.
Referenced by XrdPfc::FsTraversal::cd_down().
Open a file in r/o mode relative to an open directory.
atDir | - Reference to the directory object to use. |
path | - Pointer to the relative path of the file to be opened. |
env | - Reference to environmental information. |
ossDF | - Reference to where the file object pointer is to be returned upon success. |
Definition at line 127 of file XrdOssAt.cc.
References BOILER_PLATE, XrdOssDF::getTID(), and OPEN_AT.
Referenced by XrdPfc::FsTraversal::open_at_ro().
int XrdOssAt::Remdir | ( | XrdOssDF & | atDir, |
const char * | path | ||
) |
Remove a directory relative to an open directory. Only the online entry is removed (use standard remdir() for tape backed systems).
atDir | - Reference to the directory object to use. |
path | - Pointer to the path of the directory to be removed. |
Definition at line 152 of file XrdOssAt.cc.
References BOILER_PLATE.
Definition at line 173 of file XrdOssAt.cc.
References At_dInfo, BOILER_PLATE, XrdOssCache::DevInfo(), and opts.
Referenced by Unlink().
int XrdOssAt::Unlink | ( | XrdOssDF & | atDir, |
const char * | path | ||
) |
Remove a file relative to an open directory. Only the online copy is is removed (use standard unlink() for tape backed systems).
atDir | - Reference to the directory object to use. |
path | - Pointer to the path of the file to be removed. |
Definition at line 199 of file XrdOssAt.cc.
References XrdOssCache::Adjust(), BOILER_PLATE, XrdSysError::Emsg(), OssEroute, stat(), Stat(), XrdOssPath::Trim2Base(), unlink(), and XrdOssPath::xChar.
Referenced by XrdPfc::FsTraversal::unlink_at().
|
static |
Return state information on the target relative to an open directory.
atDir | - Reference to the directory object to use. |
path | - Pointer to the path of the target to be interrogated. |
buf | - Reference to the structure where info it to be returned. |
opts | - Options: At_dInfo - provide bdevID in st_rdev and partID in st_dev |
Definition at line 117 of file XrdOssAt.hh.
Referenced by Stat().