xrootd
|
#include <XrdOss.hh>
Public Member Functions | |
virtual XrdOssDF * | newDir (const char *tident)=0 |
virtual XrdOssDF * | newFile (const char *tident)=0 |
virtual int | Chmod (const char *path, mode_t mode, XrdOucEnv *envP=0)=0 |
virtual void | Connect (XrdOucEnv &env) |
virtual int | Create (const char *, const char *, mode_t, XrdOucEnv &, int opts=0)=0 |
virtual void | Disc (XrdOucEnv &env) |
virtual void | EnvInfo (XrdOucEnv *envP) |
virtual uint64_t | Features () |
virtual int | FSctl (int cmd, int alen, const char *args, char **resp=0) |
virtual int | Init (XrdSysLogger *lp, const char *cfn)=0 |
virtual int | Init (XrdSysLogger *lp, const char *cfn, XrdOucEnv *envP) |
virtual int | Mkdir (const char *path, mode_t mode, int mkpath=0, XrdOucEnv *envP=0)=0 |
virtual int | Reloc (const char *tident, const char *path, const char *cgName, const char *anchor=0) |
virtual int | Remdir (const char *path, int Opts=0, XrdOucEnv *envP=0)=0 |
virtual int | Rename (const char *oPath, const char *nPath, XrdOucEnv *oEnvP=0, XrdOucEnv *nEnvP=0)=0 |
virtual int | Stat (const char *path, struct stat *buff, int opts=0, XrdOucEnv *envP=0)=0 |
virtual int | Stats (char *buff, int blen) |
virtual int | StatFS (const char *path, char *buff, int &blen, XrdOucEnv *envP=0) |
virtual int | StatLS (XrdOucEnv &env, const char *path, char *buff, int &blen) |
virtual int | StatPF (const char *path, struct stat *buff, int opts) |
virtual int | StatPF (const char *path, struct stat *buff) |
virtual int | StatVS (XrdOssVSInfo *vsP, const char *sname=0, int updt=0) |
virtual int | StatXA (const char *path, char *buff, int &blen, XrdOucEnv *envP=0) |
virtual int | StatXP (const char *path, unsigned long long &attr, XrdOucEnv *envP=0) |
virtual int | Truncate (const char *path, unsigned long long fsize, XrdOucEnv *envP=0)=0 |
virtual int | Unlink (const char *path, int Opts=0, XrdOucEnv *envP=0)=0 |
virtual int | Lfn2Pfn (const char *Path, char *buff, int blen) |
virtual const char * | Lfn2Pfn (const char *Path, char *buff, int blen, int &rc) |
XrdOss () | |
Constructor and Destructor. More... | |
virtual | ~XrdOss () |
Static Public Attributes | |
static const int | PF_dInfo = 0x00000001 |
static const int | PF_dNums = 0x00000002 |
static const int | PF_isLFN = 0x00000004 |
static const int | PF_dStat = 0x00000008 |
static const int | PF_csVer = 0x00000001 |
verified file checksums present More... | |
static const int | PF_csVun = 0x00000002 |
unverified file checksums present More... | |
|
inline |
Constructor and Destructor.
|
inlinevirtual |
|
pure virtual |
Change file mode settings.
path | - Pointer to the path of the file in question. |
mode | - The new file mode setting. |
envP | - Pointer to environmental information. |
Implemented in XrdOssWrapper, XrdOssCsi, XrdOssSys, XrdPssSys, XrdOssHandler, and XrdCephOss.
Referenced by XrdOssHandler::Chmod(), and XrdOssWrapper::Chmod().
|
virtual |
Notify storage system that a client has connected.
env | - Reference to environmental information. |
Reimplemented in XrdOssWrapper, XrdPssSys, and XrdOssHandler.
Referenced by XrdOssHandler::Connect(), and XrdOssWrapper::Connect().
|
pure virtual |
Create file.
tid | - Pointer to the trace identifier. |
path | - Pointer to the path of the file to create. |
mode | - The new file mode setting. |
env | - Reference to environmental information. |
opts | - Create options: XRDOSS_mkpath - create dir path if it does not exist. XRDOSS_new - the file must not already exist. oflags<<8 - open flags shifted 8 bits to the left/ |
Implemented in XrdOssWrapper, XrdOssCsi, XrdOssSys, XrdPssSys, XrdOssHandler, and XrdCephOss.
Referenced by XrdOssHandler::Create(), and XrdOssWrapper::Create().
|
virtual |
Notify storage system that a client has disconnected.
env | - Reference to environmental information. |
Reimplemented in XrdOssWrapper, XrdPssSys, and XrdOssHandler.
Referenced by XrdOssHandler::Disc(), and XrdOssWrapper::Disc().
|
virtual |
Notify storage system of initialization information (deprecated).
envP | - Pointer to environmental information. |
Reimplemented in XrdOssWrapper, XrdPssSys, and XrdOssHandler.
Referenced by XrdOssHandler::EnvInfo(), and XrdOssWrapper::EnvInfo().
|
virtual |
Return storage system features.
Reimplemented in XrdOssWrapper, XrdOssCsi, XrdOssSys, XrdPssSys, and XrdOssHandler.
Referenced by XrdOssHandler::Features(), XrdOssCsi::Features(), and XrdOssWrapper::Features().
|
virtual |
Execute a special storage system operation.
cmd | - The operation to be performed: XRDOSS_FSCTLFA - Perform proxy file attribute operation |
alen | - Length of data pointed to by args. |
args | - Data sent with request, zero if alen is zero. |
resp | - Where the response is to be set, if any. |
Reimplemented in XrdOssWrapper, and XrdOssHandler.
Referenced by XrdOssHandler::FSctl(), and XrdOssWrapper::FSctl().
|
pure virtual |
Initialize the storage system V1 (deprecated).
lp | - Pointer to the message logging object. |
cfn | - Pointer to the configuration file. |
Implemented in XrdOssWrapper, XrdOssCsi, XrdOssSys, XrdPssSys, and XrdCephOss.
Referenced by XrdOssWrapper::Init(), and Init().
|
inlinevirtual |
Initialize the storage system V2.
lp | - Pointer to the message logging object. |
cfn | - Pointer to the configuration file. |
envP | - Pointer to environmental information. |
Reimplemented in XrdOssWrapper, XrdOssCsi, XrdOssSys, and XrdPssSys.
References Init().
|
inlinevirtual |
Translate logical name to physical name V1 (deprecated).
Path | - Path in whose information is wanted. |
buff | - Pointer to the buffer to hold the new path. |
blen | - Length of the buffer. |
Reimplemented in XrdOssWrapper, XrdOssSys, XrdPssSys, and XrdOssHandler.
Referenced by XrdOssHandler::Lfn2Pfn(), and XrdOssWrapper::Lfn2Pfn().
|
inlinevirtual |
Translate logical name to physical name V2.
Path | - Path in whose information is wanted. |
buff | - Pointer to the buffer to hold the new path. |
blen | - Length of the buffer. |
rc | - Place where failure return code is to be returned: -errno or -osserr (see XrdOssError.hh). |
Reimplemented in XrdOssWrapper, XrdOssSys, XrdPssSys, and XrdOssHandler.
References nlohmann::detail::void().
|
pure virtual |
Create a directory.
path | - Pointer to the path of the directory to be created. |
mode | - The directory mode setting. |
mkpath | - When true the path is created if it does not exist. |
envP | - Pointer to environmental information. |
Implemented in XrdOssWrapper, XrdOssCsi, XrdOssSys, XrdPssSys, XrdOssHandler, and XrdCephOss.
Referenced by XrdOssHandler::Mkdir(), and XrdOssWrapper::Mkdir().
|
pure virtual |
Obtain a new director object to be used for future directory requests.
tident | - The trace identifier. |
Implemented in XrdOssWrapper, XrdOssCsi, XrdOssSys, XrdPssSys, and XrdCephOss.
Referenced by XrdOssWrapper::newDir().
|
pure virtual |
Obtain a new file object to be used for a future file requests.
tident | - The trace identifier. |
Implemented in XrdOssWrapper, XrdOssCsi, XrdOssSys, XrdPssSys, and XrdCephOss.
Referenced by XrdOssWrapper::newFile().
|
virtual |
Relocate/Copy the file at `path' to a new location.
tident | - -> trace identifier for this operation. |
path | - -> fully qualified name of the file to relocate. |
cgName | - -> target space name[:path] |
anchor | - Processing directions (see XrdOssReloc.cc example). |
Reimplemented in XrdOssWrapper, XrdOssCsi, XrdOssSys, and XrdOssHandler.
Referenced by XrdOssHandler::Reloc(), and XrdOssWrapper::Reloc().
|
pure virtual |
Remove a directory.
path | - Pointer to the path of the directory to be removed. |
opts | - The processing options: XRDOSS_Online - only remove online copy XRDOSS_isPFN - path is already translated. |
envP | - Pointer to environmental information. |
Implemented in XrdOssWrapper, XrdOssCsi, XrdOssSys, XrdPssSys, XrdOssHandler, and XrdCephOss.
Referenced by XrdOssHandler::Remdir(), and XrdOssWrapper::Remdir().
|
pure virtual |
Rename a file or directory.
oPath | - Pointer to the path to be renamed. |
nPath | - Pointer to the path oPath is to have. |
oEnvP | - Environmental information for oPath. |
nEnvP | - Environmental information for nPath. |
Implemented in XrdOssWrapper, XrdOssCsi, XrdOssSys, XrdPssSys, XrdOssHandler, and XrdCephOss.
Referenced by XrdOssHandler::Rename(), and XrdOssWrapper::Rename().
|
pure virtual |
Return state information on a file or directory.
path | - Pointer to the path in question. |
buff | - Pointer to the structure where info it to be returned. |
opts | - Options: XRDOSS_preop - this is a stat prior to open. XRDOSS_resonly - only look for resident files. XRDOSS_updtatm - update file access time. |
envP | - Pointer to environmental information. |
Implemented in XrdOssWrapper, XrdOssCsi, XrdOssSys, XrdPssSys, XrdOssHandler, and XrdCephOss.
Referenced by XrdOssHandler::Stat(), and XrdOssWrapper::Stat().
|
virtual |
Return filesystem physical space information associated with a path.
path | - Path in the partition in question. |
buff | - Pointer to the buffer to hold the information. |
blen | - Length of the buffer. This is updated with the actual number of bytes placed in the buffer as in snprintf(). |
opts | - Options: XRDEXP_STAGE - info for stageable space wanted. XRDEXP_NOTRW - info for Read/Only space wanted. |
envP | - Pointer to environmental information. |
Reimplemented in XrdOssWrapper, XrdOssSys, XrdOssHandler, and XrdCephOss.
Referenced by XrdOssHandler::StatFS(), and XrdOssWrapper::StatFS().
|
virtual |
Return filesystem physical space information associated with a space name.
path | - Path in the name space in question. The space name associated with gthe path is used unless overridden. |
buff | - Pointer to the buffer to hold the information. |
blen | - Length of the buffer. This is updated with the actual number of bytes placed in the buffer as in snprintf(). |
opts | - Options (see StatFS()) apply only when there are no spaces defined. |
envP | - Ref to environmental information. If the environment has the key oss.cgroup defined, the associated value is used as the space name and the path is ignored. |
Reimplemented in XrdOssWrapper, XrdOssSys, and XrdOssHandler.
Referenced by XrdOssHandler::StatLS(), and XrdOssWrapper::StatLS().
|
virtual |
Reimplemented in XrdOssWrapper, XrdOssCsi, XrdOssSys, and XrdOssHandler.
Referenced by XrdOssHandler::StatPF(), XrdOssWrapper::StatPF(), and StatPF().
|
inlinevirtual |
Reimplemented in XrdOssWrapper, XrdOssCsi, and XrdOssHandler.
References StatPF().
|
inlinevirtual |
Return statistics.
buff | - Pointer to the buffer to hold statistics. |
blen | - Length of the buffer. |
Reimplemented in XrdOssWrapper, XrdOssSys, XrdPssSys, and XrdOssHandler.
References nlohmann::detail::void().
Referenced by XrdOssHandler::Stats(), and XrdOssWrapper::Stats().
|
virtual |
Return space information for a space name.
vsP | - Pointer to the XrdOssVSInfo object to hold results. It should be fully initialized (i.e. a new copy). |
sname | - Pointer to the space name. If the name starts with a plus (e.g. "+public"), partition information is returned, should it exist. If nil, space information for all spaces is returned. See, XrdOssVS.hh for more info. |
updt | - When true, a space update occurrs prior to a query. |
Reimplemented in XrdOssWrapper, XrdOssSys, XrdOssHandler, and XrdCephOss.
Referenced by XrdOssHandler::StatVS(), and XrdOssWrapper::StatVS().
|
virtual |
Return logical extended attributes associated with a path.
path | - Path in whose information is wanted. |
buff | - Pointer to the buffer to hold the information. |
blen | - Length of the buffer. This is updated with the actual number of bytes placed in the buffer as in snprintf(). |
envP | - Pointer to environmental information. |
Reimplemented in XrdOssWrapper, XrdOssCsi, XrdOssSys, and XrdOssHandler.
Referenced by XrdOssHandler::StatXA(), and XrdOssWrapper::StatXA().
|
virtual |
Return export attributes associated with a path.
path | - Path in whose information is wanted. |
attr | - Reference to where the inforamation is to be stored. |
envP | - Pointer to environmental information. |
Reimplemented in XrdOssWrapper, XrdOssSys, and XrdOssHandler.
Referenced by XrdOssHandler::StatXP(), and XrdOssWrapper::StatXP().
|
pure virtual |
Truncate a file.
path | - Pointer to the path of the file to be truncated. |
fsize | - The size that the file is to have. |
envP | - Pointer to environmental information. |
Implemented in XrdOssWrapper, XrdOssSys, XrdOssCsi, XrdPssSys, XrdOssHandler, and XrdCephOss.
Referenced by XrdOssHandler::Truncate(), and XrdOssWrapper::Truncate().
|
pure virtual |
Remove a file.
path | - Pointer to the path of the file to be removed. |
opts | - Options: XRDOSS_isMIG - this is a migratable path. XRDOSS_isPFN - do not apply name2name to path. XRDOSS_Online - remove only the online copy. |
envP | - Pointer to environmental information. |
Implemented in XrdOssWrapper, XrdOssSys, XrdOssCsi, XrdPssSys, XrdOssHandler, and XrdCephOss.
Referenced by XrdOssHandler::Unlink(), and XrdOssWrapper::Unlink().
|
static |
verified file checksums present
|
static |
unverified file checksums present
|
static |
Return state information on a resident physical file or directory.
path | - Pointer to the path in question. |
buff | - Pointer to the structure where info it to be returned. |
opts | - Options: PF_dInfo - provide bdevID in st_rdev and partID in st_dev based on path. If path is nil then the contents of the of buff is used as the input source. PF_dNums - provide number of bdev's in st_rdev and the number of partitions in st_dev. The path argument is ignored. This superceeds PF_dInfo. PF_dStat - provide file state flags in st_rdev as shown below. Path may not be nil. This supercedes PF_dInfo and PF_dNums. PF_isLFN - Do N2N translation on path (default is none). |
|
static |
|
static |
|
static |