![]() |
XRootD
|
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <strings.h>
#include <cstring>
#include <cstdlib>
#include "XrdVersion.hh"
#include "XrdOss/XrdOss.hh"
#include "XrdOss/XrdOssStatInfo.hh"
#include "XrdOuc/XrdOucEnv.hh"
#include "XrdSys/XrdSysError.hh"
Go to the source code of this file.
Functions | |
int | XrdOssStatInfo (const char *path, struct stat *buff, int opts, XrdOucEnv *envP) |
XrdOssStatInfo_t | XrdOssStatInfoInit (XrdOss *native_oss, XrdSysLogger *Logger, const char *config_fn, const char *parms) |
int | XrdOssStatInfoParm (XrdSysError &eDest, const char *var, const char *val) |
XrdVERSIONINFO (XrdOssStatInfoInit, Stat-GPFS+TAPE) | |
Variables | |
int | XrdOssStatInfoResOnly = ENOENT |
Definition at line 84 of file XrdOssSIgpfsT.cc.
References opts, stat(), XRDOSS_resonly, and XrdOssStatInfoResOnly.
Referenced by XrdOssStatInfoInit().
XrdOssStatInfo_t XrdOssStatInfoInit | ( | XrdOss * | native_oss, |
XrdSysLogger * | Logger, | ||
const char * | config_fn, | ||
const char * | parms | ||
) |
The following function is invoked by the plugin manager to obtain the function that is to be used for stat() calls. Valid parameters are:
<pgm> := cmsd | frm_xfrd | frm_purged | xrootd <role> := manager | peer | proxy | server | supervisor <token> := stat[.<pgm>[.<role>]]={online|all}[&<token>]
Definition at line 132 of file XrdOssSIgpfsT.cc.
References XrdOucEnv::Get(), XrdGlobal::Logger, XrdCms::Say, XrdSysError::Say(), XrdOssStatInfo(), XrdOssStatInfoParm(), and XrdOssStatInfoResOnly.
int XrdOssStatInfoParm | ( | XrdSysError & | eDest, |
const char * | var, | ||
const char * | val | ||
) |
Definition at line 109 of file XrdOssSIgpfsT.cc.
References eDest, and XrdSysError::Say().
Referenced by XrdOssStatInfoInit().
XrdVERSIONINFO | ( | XrdOssStatInfoInit | , |
Stat-GPFS+ | TAPE | ||
) |
int XrdOssStatInfoResOnly = ENOENT |
This file defines a default plug-in that can be used to handle stat() calls for GPFS backed with a tape system. Valid parameters that can be passed to XrdOssStatInfoInit are:
<prog> := cmsd | frm_xfrd | frm_purged | xrootd <role> := manager | peer | proxy | server | supervisor <token> := stat[.<prog>[.<role>]]={all | online[:eperm]}[&<token>]
where: <prog> applies the specification only to programs named <prog>. If <prog> is not specified, the parametr applies to all programs. <role> applies the specification only to programs named <prog> running with the role <role>. If <role> is not specified, the parameter applies to all <prog>'s regardless of their role. In all cases, the most restrictive specification applies. all allows stat() to return info for online and offline files. online allows stat() to return info for online files only. When when stat() encounters an offline file it returns ENOENT. However, specifying "online:eperm" return EPERM instead. This global variable is set by XrdOssStatInfoInit to indicate whether we will allow access to all files or only disk resident files. By default, only disk resident files are allowed to be handled via stat(). The value is the errno to be returned when we trip over a non-resident file.
Definition at line 78 of file XrdOssSIgpfsT.cc.
Referenced by XrdOssStatInfo(), and XrdOssStatInfoInit().