XRootD
XrdOss Class Referenceabstract

#include <XrdOss.hh>

+ Inheritance diagram for XrdOss:
+ Collaboration diagram for XrdOss:

Public Member Functions

 XrdOss ()
 Constructor and Destructor. More...
 
virtual ~XrdOss ()
 
virtual int Chmod (const char *path, mode_t mode, XrdOucEnv *envP=0)=0
 
virtual void Connect (XrdOucEnv &env)
 
virtual int Create (const char *tid, const char *path, mode_t mode, XrdOucEnv &env, 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 Lfn2Pfn (const char *Path, char *buff, int blen)
 
virtual const char * Lfn2Pfn (const char *Path, char *buff, int blen, int &rc)
 
virtual int Mkdir (const char *path, mode_t mode, int mkpath=0, XrdOucEnv *envP=0)=0
 
virtual XrdOssDFnewDir (const char *tident)=0
 
virtual XrdOssDFnewFile (const char *tident)=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 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)
 
virtual int StatPF (const char *path, struct stat *buff, int opts)
 
virtual int Stats (char *buff, int blen)
 
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
 

Static Public Attributes

static const int PF_csVer = 0x00000001
 verified file checksums present More...
 
static const int PF_csVun = 0x00000002
 unverified file checksums present More...
 
static const int PF_dInfo = 0x00000001
 
static const int PF_dNums = 0x00000002
 
static const int PF_dStat = 0x00000008
 
static const int PF_isLFN = 0x00000004
 

Detailed Description

Definition at line 498 of file XrdOss.hh.

Constructor & Destructor Documentation

◆ XrdOss()

XrdOss::XrdOss ( )
inline

Constructor and Destructor.

Definition at line 897 of file XrdOss.hh.

897 {}

◆ ~XrdOss()

virtual XrdOss::~XrdOss ( )
inlinevirtual

Definition at line 898 of file XrdOss.hh.

898 {}

Member Function Documentation

◆ Chmod()

virtual int XrdOss::Chmod ( const char *  path,
mode_t  mode,
XrdOucEnv envP = 0 
)
pure virtual

Change file mode settings.

Parameters
path- Pointer to the path of the file in question.
mode- The new file mode setting.
envP- Pointer to environmental information.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Implemented in XrdOssHandler, XrdOssCsi, XrdOssWrapper, StatsFileSystem, XrdPssSys, XrdOssSys, and XrdCephOss.

Referenced by XrdOfs::chmod(), StatsFileSystem::Chmod(), XrdOssWrapper::Chmod(), XrdOssCsi::Chmod(), XrdOssHandler::Chmod(), XrdCmsNode::do_Chmod(), and XrdPfc::Cache::LocalFilePath().

+ Here is the caller graph for this function:

◆ Connect()

void XrdOss::Connect ( XrdOucEnv env)
virtual

Notify storage system that a client has connected.

Parameters
env- Reference to environmental information.

Reimplemented in XrdOssHandler, XrdOssWrapper, and XrdPssSys.

Definition at line 42 of file XrdOss.cc.

42 {(void)env;}

Referenced by XrdOfs::Connect(), XrdOssWrapper::Connect(), and XrdOssHandler::Connect().

+ Here is the caller graph for this function:

◆ Create()

virtual int XrdOss::Create ( const char *  tid,
const char *  path,
mode_t  mode,
XrdOucEnv env,
int  opts = 0 
)
pure virtual

Create file.

Parameters
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/
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Implemented in XrdOssHandler, XrdOssCsi, XrdOssWrapper, XrdPssSys, XrdOssSys, and XrdCephOss.

Referenced by XrdOssWrapper::Create(), XrdOssCsi::Create(), XrdOssHandler::Create(), XrdOfsFile::open(), and XrdPfc::DataFsSnapshot::write_json_file().

+ Here is the caller graph for this function:

◆ Disc()

void XrdOss::Disc ( XrdOucEnv env)
virtual

Notify storage system that a client has disconnected.

Parameters
env- Reference to environmental information.

Reimplemented in XrdOssHandler, XrdOssWrapper, and XrdPssSys.

Definition at line 48 of file XrdOss.cc.

48 {(void)env;}

Referenced by XrdOfs::Disc(), XrdOssWrapper::Disc(), and XrdOssHandler::Disc().

+ Here is the caller graph for this function:

◆ EnvInfo()

void XrdOss::EnvInfo ( XrdOucEnv envP)
virtual

Notify storage system of initialization information (deprecated).

Parameters
envP- Pointer to environmental information.

Reimplemented in XrdPssSys, XrdOssHandler, and XrdOssWrapper.

Definition at line 54 of file XrdOss.cc.

54 {(void)envP;}
XrdOucEnv * envP
Definition: XrdPss.cc:109

References XrdProxy::envP.

Referenced by XrdOssWrapper::EnvInfo(), XrdOssHandler::EnvInfo(), and XrdOssGetSS().

+ Here is the caller graph for this function:

◆ Features()

uint64_t XrdOss::Features ( )
virtual

Return storage system features.

Returns
Storage system features (see XRDOSS_HASxxx flags).

Reimplemented in XrdPssSys, XrdOssHandler, XrdOssCsi, XrdOssWrapper, and XrdOssSys.

Definition at line 60 of file XrdOss.cc.

60 {return 0;}

Referenced by XrdOfs::Configure(), XrdOssWrapper::Features(), XrdOssCsi::Features(), and XrdOssHandler::Features().

+ Here is the caller graph for this function:

◆ FSctl()

int XrdOss::FSctl ( int  cmd,
int  alen,
const char *  args,
char **  resp = 0 
)
virtual

Execute a special storage system operation.

Parameters
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.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented in XrdOssHandler, and XrdOssWrapper.

Definition at line 66 of file XrdOss.cc.

67 {
68  (void)cmd; (void)alen; (void)args; (void)resp;
69  return -ENOTSUP;
70 }

Referenced by XrdOfs::FAttr(), XrdOssWrapper::FSctl(), and XrdOssHandler::FSctl().

+ Here is the caller graph for this function:

◆ Init() [1/2]

virtual int XrdOss::Init ( XrdSysLogger lp,
const char *  cfn 
)
pure virtual

Initialize the storage system V1 (deprecated).

Parameters
lp- Pointer to the message logging object.
cfn- Pointer to the configuration file.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Implemented in XrdOssSys, XrdOssCsi, XrdOssWrapper, XrdPssSys, and XrdCephOss.

Referenced by XrdOssWrapper::Init(), and Init().

+ Here is the caller graph for this function:

◆ Init() [2/2]

virtual int XrdOss::Init ( XrdSysLogger lp,
const char *  cfn,
XrdOucEnv envP 
)
inlinevirtual

Initialize the storage system V2.

Parameters
lp- Pointer to the message logging object.
cfn- Pointer to the configuration file.
envP- Pointer to environmental information.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented in XrdOssCsi, XrdOssWrapper, XrdPssSys, and XrdOssSys.

Definition at line 622 of file XrdOss.hh.

623  {return Init(lp, cfn);}
virtual int Init(XrdSysLogger *lp, const char *cfn)=0

References Init().

+ Here is the call graph for this function:

◆ Lfn2Pfn() [1/2]

virtual int XrdOss::Lfn2Pfn ( const char *  Path,
char *  buff,
int  blen 
)
inlinevirtual

Translate logical name to physical name V1 (deprecated).

Parameters
Path- Path in whose information is wanted.
buff- Pointer to the buffer to hold the new path.
blen- Length of the buffer.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented in XrdPssSys, XrdOssHandler, XrdOssWrapper, and XrdOssSys.

Definition at line 873 of file XrdOss.hh.

874  {if ((int)strlen(Path) >= blen) return -ENAMETOOLONG;
875  strcpy(buff, Path); return 0;
876  }
XrdOucString Path

References Path.

Referenced by LfnPfn::LfnPfn(), XrdOfs::chksum(), XrdPfc::Cache::DetermineFullFileSize(), XrdOfs::FAttr(), XrdOssWrapper::Lfn2Pfn(), XrdOssHandler::Lfn2Pfn(), XrdPfc::Cache::LocalFilePath(), and XrdOfsFile::open().

+ Here is the caller graph for this function:

◆ Lfn2Pfn() [2/2]

virtual const char* XrdOss::Lfn2Pfn ( const char *  Path,
char *  buff,
int  blen,
int &  rc 
)
inlinevirtual

Translate logical name to physical name V2.

Parameters
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).
Returns
Pointer to the translated path upon success or nil on failure.

Reimplemented in XrdPssSys, XrdOssHandler, XrdOssWrapper, and XrdOssSys.

Definition at line 890 of file XrdOss.hh.

891  { (void)buff; (void)blen; rc = 0; return Path;}

References Path.

◆ Mkdir()

virtual int XrdOss::Mkdir ( const char *  path,
mode_t  mode,
int  mkpath = 0,
XrdOucEnv envP = 0 
)
pure virtual

Create a directory.

Parameters
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.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Implemented in XrdOssHandler, XrdOssCsi, XrdOssWrapper, XrdPssSys, XrdOssSys, and XrdCephOss.

Referenced by XrdCmsNode::do_Mkdir(), XrdCmsNode::do_Mkpath(), XrdOfs::mkdir(), XrdOssWrapper::Mkdir(), XrdOssCsi::Mkdir(), XrdOssHandler::Mkdir(), and XrdOssCsi::Rename().

+ Here is the caller graph for this function:

◆ newDir()

virtual XrdOssDF* XrdOss::newDir ( const char *  tident)
pure virtual

Obtain a new director object to be used for future directory requests.

Parameters
tident- The trace identifier.
Returns
pointer- Pointer to an XrdOssDF object.
nil - Insufficient memory to allocate an object.

Implemented in StatsFileSystem, XrdPssSys, XrdOssCsi, XrdOssWrapper, XrdOssSys, and XrdCephOss.

Referenced by XrdPfc::Print::Print(), XrdPfc::FsTraversal::begin_traversal(), XrdOssWrapper::newDir(), XrdOssCsi::newDir(), StatsFileSystem::newDir(), and XrdOfsDirectory::open().

+ Here is the caller graph for this function:

◆ newFile()

virtual XrdOssDF* XrdOss::newFile ( const char *  tident)
pure virtual

Obtain a new file object to be used for a future file requests.

Parameters
tident- The trace identifier.
Returns
pointer- Pointer to an XrdOssDF object.
nil - Insufficient memory to allocate an object.

Implemented in StatsFileSystem, XrdPssSys, XrdOssCsi, XrdOssWrapper, XrdOssSys, and XrdCephOss.

Referenced by XrdCksManOss::Calc(), XrdPfc::Cache::DetermineFullFileSize(), XrdPfc::Cache::ExecuteCommandUrl(), XrdPfc::Cache::LocalFilePath(), XrdOssWrapper::newFile(), XrdOssCsi::newFile(), StatsFileSystem::newFile(), XrdOfsFile::open(), and XrdPfc::DataFsSnapshot::write_json_file().

+ Here is the caller graph for this function:

◆ Reloc()

int XrdOss::Reloc ( const char *  tident,
const char *  path,
const char *  cgName,
const char *  anchor = 0 
)
virtual

Relocate/Copy the file at ‘path’ to a new location.

Parameters
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).
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented in XrdOssHandler, XrdOssCsi, XrdOssWrapper, and XrdOssSys.

Definition at line 76 of file XrdOss.cc.

78 {
79  (void)tident; (void)path; (void)cgName; (void)anchor;
80  return -ENOTSUP;
81 }
#define tident

References tident.

Referenced by XrdFrmAdmin::Reloc(), XrdOssWrapper::Reloc(), XrdOssCsi::Reloc(), and XrdOssHandler::Reloc().

+ Here is the caller graph for this function:

◆ Remdir()

virtual int XrdOss::Remdir ( const char *  path,
int  Opts = 0,
XrdOucEnv envP = 0 
)
pure virtual

Remove a directory.

Parameters
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.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Implemented in XrdOssHandler, XrdOssCsi, XrdOssWrapper, XrdPssSys, XrdOssSys, and XrdCephOss.

Referenced by XrdCmsNode::do_Rmdir(), XrdFrmPurgeDir::isEmpty(), XrdOssWrapper::Remdir(), XrdOssCsi::Remdir(), and XrdOssHandler::Remdir().

+ Here is the caller graph for this function:

◆ Rename()

virtual int XrdOss::Rename ( const char *  oPath,
const char *  nPath,
XrdOucEnv oEnvP = 0,
XrdOucEnv nEnvP = 0 
)
pure virtual

Rename a file or directory.

Parameters
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.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Implemented in StatsFileSystem, XrdOssWrapper, XrdOssHandler, XrdOssCsi, XrdPssSys, XrdOssSys, and XrdCephOss.

Referenced by XrdCmsNode::do_Mv(), XrdFrmAdmin::Mv(), XrdOfs::rename(), XrdOssCsi::Rename(), XrdOssHandler::Rename(), XrdOssWrapper::Rename(), and StatsFileSystem::Rename().

+ Here is the caller graph for this function:

◆ Stat()

virtual int XrdOss::Stat ( const char *  path,
struct stat buff,
int  opts = 0,
XrdOucEnv envP = 0 
)
pure virtual

Return state information on a file or directory.

Parameters
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.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Implemented in XrdOssHandler, XrdOssCsi, XrdOssWrapper, StatsFileSystem, XrdPssSys, XrdCephOss, and XrdOssSys.

Referenced by XrdOfsPoscq::Add(), XrdOfs::chmod(), XrdPfc::Cache::ConsiderCached(), XrdOssCsi::Create(), XrdPfc::Cache::ExecuteCommandUrl(), XrdCmsBaseFS::Exists(), XrdOfs::exists(), XrdOfs::fsctl(), XrdOfsPoscq::Init(), XrdPfc::Cache::LocalFilePath(), XrdCksManOss::ModTime(), XrdPfc::Cache::Prepare(), XrdOfsTPCProg::Run(), XrdOfs::stat(), StatsFileSystem::Stat(), XrdOssWrapper::Stat(), XrdOssCsi::Stat(), XrdOssHandler::Stat(), XrdPfc::Cache::Stat(), XrdFrmConfig::Stat(), XrdPfc::Cache::UnlinkFile(), and XrdCmsScrubScan().

+ Here is the caller graph for this function:

◆ StatFS()

int XrdOss::StatFS ( const char *  path,
char *  buff,
int &  blen,
XrdOucEnv envP = 0 
)
virtual

Return filesystem physical space information associated with a path.

Parameters
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().
envP- Pointer to environmental information.
Returns
"<wval> <fsp> <utl> <sval> <fsp> <utl>" where: <wval> is "0" if XRDEXP_NOTRW specified, otherwise "1" <fsp> is free space in megabytes. <utl> is percentage utilization (i.e. allocated space) <sval> is "1' if XRDEXP_STAGE specified, otherwise "0" Upon failure -errno or -osserr (see XrdOssError.hh) returned.

Reimplemented in XrdOssHandler, XrdCephOss, XrdOssWrapper, StatsFileSystem, and XrdOssSys.

Definition at line 87 of file XrdOss.cc.

88 {
89  (void)path; (void)buff; (void)blen; (void)eP;
90  return -ENOTSUP;
91 }

Referenced by XrdOfs::fsctl(), StatsFileSystem::StatFS(), XrdOssWrapper::StatFS(), and XrdOssHandler::StatFS().

+ Here is the caller graph for this function:

◆ StatLS()

int XrdOss::StatLS ( XrdOucEnv env,
const char *  path,
char *  buff,
int &  blen 
)
virtual

Return filesystem physical space information associated with a space name.

Parameters
env- 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.
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().
Returns
"oss.cgroup=<name>&oss.space=<totbytes>&oss.free=<freebytes> &oss.maxf=<maxcontigbytes>&oss.used=<bytesused> &oss.quota=<quotabytes>" in buff upon success. Upon failure -errno or -osserr (see XrdOssError.hh) returned.

Reimplemented in StatsFileSystem, XrdOssWrapper, XrdOssSys, and XrdOssHandler.

Definition at line 97 of file XrdOss.cc.

98 {
99  (void)env; (void)cgrp; (void)buff; (void)blen;
100  return -ENOTSUP;
101 }

Referenced by XrdOfs::fsctl(), XrdOssHandler::StatLS(), XrdOssWrapper::StatLS(), and StatsFileSystem::StatLS().

+ Here is the caller graph for this function:

◆ StatPF() [1/2]

virtual int XrdOss::StatPF ( const char *  path,
struct stat buff 
)
inlinevirtual

Reimplemented in StatsFileSystem, XrdOssHandler, XrdOssCsi, and XrdOssWrapper.

Definition at line 783 of file XrdOss.hh.

784  {return StatPF(path, buff, 0);} // Backward compat
virtual int StatPF(const char *path, struct stat *buff, int opts)
Definition: XrdOss.cc:107

References StatPF().

+ Here is the call graph for this function:

◆ StatPF() [2/2]

int XrdOss::StatPF ( const char *  path,
struct stat buff,
int  opts 
)
virtual

Reimplemented in StatsFileSystem, XrdOssHandler, XrdOssCsi, XrdOssWrapper, and XrdOssSys.

Definition at line 107 of file XrdOss.cc.

108 {
109  (void)path; (void)buff;
110  return -ENOTSUP;
111 }

Referenced by XrdFrmConfig::Configure(), XrdFrmConfig::Stat(), StatPF(), XrdOssWrapper::StatPF(), XrdOssCsi::StatPF(), XrdOssHandler::StatPF(), and StatsFileSystem::StatPF().

+ Here is the caller graph for this function:

◆ Stats()

virtual int XrdOss::Stats ( char *  buff,
int  blen 
)
inlinevirtual

Return statistics.

Parameters
buff- Pointer to the buffer to hold statistics.
blen- Length of the buffer.
Returns
The number of bytes placed in the buffer excluding null byte.

Reimplemented in XrdOssWrapper, XrdPssSys, XrdOssHandler, and XrdOssSys.

Definition at line 707 of file XrdOss.hh.

707 {(void)buff; (void)blen; return 0;}

Referenced by XrdOfs::getStats(), XrdOssHandler::Stats(), and XrdOssWrapper::Stats().

+ Here is the caller graph for this function:

◆ StatVS()

int XrdOss::StatVS ( XrdOssVSInfo vsP,
const char *  sname = 0,
int  updt = 0 
)
virtual

Return space information for a space name.

Parameters
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.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented in StatsFileSystem, XrdOssWrapper, XrdOssHandler, XrdOssSys, and XrdCephOss.

Definition at line 117 of file XrdOss.cc.

118 {
119  (void)sP; (void)sname; (void)updt;
120  return -ENOTSUP;
121 }

Referenced by XrdPfc::Cache::Config(), XrdCmsMeter::Init(), XrdFrmPurge::Init(), XrdOssHandler::StatVS(), XrdOssWrapper::StatVS(), StatsFileSystem::StatVS(), and XrdPfc::ResourceMonitor::update_vs_and_file_usage_info().

+ Here is the caller graph for this function:

◆ StatXA()

int XrdOss::StatXA ( const char *  path,
char *  buff,
int &  blen,
XrdOucEnv envP = 0 
)
virtual

Return logical extended attributes associated with a path.

Parameters
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.
Returns
"oss.cgroup=<name>&oss.type={'f'|'d'|'o'}&oss.used=<totbytes> &oss.mt=<mtime>&oss.ct=<ctime>&oss.at=<atime>&oss.u=*&oss.g=* &oss.fs={'w'|'r'}" Upon failure -errno or -osserr (see XrdOssError.hh) returned.

Reimplemented in XrdOssHandler, XrdOssCsi, XrdOssWrapper, StatsFileSystem, and XrdOssSys.

Definition at line 127 of file XrdOss.cc.

128 {
129  (void)path; (void)buff; (void)blen; (void)eP;
130  return -ENOTSUP;
131 }

Referenced by XrdOfs::fsctl(), StatsFileSystem::StatXA(), XrdOssWrapper::StatXA(), XrdOssCsi::StatXA(), and XrdOssHandler::StatXA().

+ Here is the caller graph for this function:

◆ StatXP()

int XrdOss::StatXP ( const char *  path,
unsigned long long &  attr,
XrdOucEnv envP = 0 
)
virtual

Return export attributes associated with a path.

Parameters
path- Path in whose information is wanted.
attr- Reference to where the inforamation is to be stored.
envP- Pointer to environmental information.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented in XrdOssHandler, XrdOssWrapper, StatsFileSystem, and XrdOssSys.

Definition at line 137 of file XrdOss.cc.

138 {
139  (void)path; (void)attr; (void)eP;
140  return -ENOTSUP;
141 }

Referenced by StatsFileSystem::StatXP(), XrdOssWrapper::StatXP(), and XrdOssHandler::StatXP().

+ Here is the caller graph for this function:

◆ Truncate()

virtual int XrdOss::Truncate ( const char *  path,
unsigned long long  fsize,
XrdOucEnv envP = 0 
)
pure virtual

Truncate a file.

Parameters
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.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Implemented in XrdOssHandler, XrdOssCsi, XrdOssWrapper, StatsFileSystem, XrdPssSys, XrdCephOss, and XrdOssSys.

Referenced by XrdCmsNode::do_Trunc(), XrdOfs::truncate(), StatsFileSystem::Truncate(), XrdOssWrapper::Truncate(), and XrdOssHandler::Truncate().

+ Here is the caller graph for this function:

◆ Unlink()

virtual int XrdOss::Unlink ( const char *  path,
int  Opts = 0,
XrdOucEnv envP = 0 
)
pure virtual

Remove a file.

Parameters
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.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Implemented in XrdOssHandler, XrdOssCsi, XrdCephOss, XrdOssWrapper, StatsFileSystem, XrdPssSys, and XrdOssSys.

Referenced by XrdOfsTPCInfo::~XrdOfsTPCInfo(), XrdOfsTPC::Death(), XrdOfsPoscq::Del(), XrdCmsNode::do_Rm(), XrdPfc::ResourceMonitor::heart_beat(), XrdOssCsi::Rename(), StatsFileSystem::Unlink(), XrdOssWrapper::Unlink(), XrdOssCsi::Unlink(), XrdOssHandler::Unlink(), XrdPfc::Cache::UnlinkFile(), XrdOfs::Unpersist(), and XrdOfsTPCProg::Xeq().

+ Here is the caller graph for this function:

Member Data Documentation

◆ PF_csVer

const int XrdOss::PF_csVer = 0x00000001
static

verified file checksums present

Definition at line 778 of file XrdOss.hh.

Referenced by XrdOssCsi::StatPF(), and XrdOssCsiPages::VerificationStatus().

◆ PF_csVun

const int XrdOss::PF_csVun = 0x00000002
static

unverified file checksums present

Definition at line 779 of file XrdOss.hh.

Referenced by XrdOssCsi::StatPF(), and XrdOssCsiPages::VerificationStatus().

◆ PF_dInfo

const int XrdOss::PF_dInfo = 0x00000001
static

Return state information on a resident physical file or directory.

Parameters
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).
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Definition at line 770 of file XrdOss.hh.

Referenced by XrdOssSys::StatPF().

◆ PF_dNums

const int XrdOss::PF_dNums = 0x00000002
static

Definition at line 771 of file XrdOss.hh.

Referenced by XrdOssSys::StatPF().

◆ PF_dStat

const int XrdOss::PF_dStat = 0x00000008
static

Definition at line 773 of file XrdOss.hh.

Referenced by XrdOssSys::StatPF(), and XrdOssCsi::StatPF().

◆ PF_isLFN

const int XrdOss::PF_isLFN = 0x00000004
static

Definition at line 772 of file XrdOss.hh.

Referenced by XrdOssSys::StatPF().


The documentation for this class was generated from the following files: