xrootd
|
#include <XrdOssAt.hh>
Public Member Functions | |
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) |
XrdOssAt (XrdOss &ossfs) | |
~XrdOssAt () | |
Destructor. | |
Static Public Attributes | |
static const int | At_dInfo = 0x00000001 |
Private Attributes | |
XrdOss & | ossFS |
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.
|
inline |
Constructor
ossfs | - Reference to the OSS system interface. |
|
inline |
Destructor.
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. |
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. |
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. |
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. |
|
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 |
|
private |