xrootd
|
POSIX interface to XRootD with some extensions, as noted. More...
#include <XrdPosixXrootd.hh>
Public Member Functions | |
int | fdOrigin () |
XrdPosixXrootd (int maxfd=255, int maxdir=0, int maxthr=0) | |
~XrdPosixXrootd () | |
Static Public Member Functions | |
static int | Access (const char *path, int amode) |
Access() conforms to POSIX.1-2001 access() More... | |
static int | Close (int fildes) |
Close() conforms to POSIX.1-2001 close() More... | |
static int | Closedir (DIR *dirp) |
Closedir() conforms to POSIX.1-2001 closedir() More... | |
static int | endPoint (int FD, char *Buff, int Blen) |
static int | Fstat (int fildes, struct stat *buf) |
Fstat() conforms to POSIX.1-2001 fstat() More... | |
static int | Fsync (int fildes) |
Fsync() conforms to POSIX.1-2001 fsync() More... | |
static void | Fsync (int fildes, XrdPosixCallBackIO *cbp) |
static int | Ftruncate (int fildes, off_t offset) |
Ftruncate() conforms to POSIX.1-2001 ftruncate() More... | |
static long long | Getxattr (const char *path, const char *name, void *value, unsigned long long size) |
static off_t | Lseek (int fildes, off_t offset, int whence) |
Lseek() conforms to POSIX.1-2001 lseek() More... | |
static int | Mkdir (const char *path, mode_t mode) |
Mkdir() conforms to POSIX.1-2001 mkdir() More... | |
static int | Open (const char *path, int oflag, mode_t mode=0, XrdPosixCallBack *cbP=0) |
static DIR * | Opendir (const char *path) |
Opendir() conforms to POSIX.1-2001 opendir() More... | |
static ssize_t | Pread (int fildes, void *buf, size_t nbyte, off_t offset) |
Pread() conforms to POSIX.1-2001 pread() More... | |
static void | Pread (int fildes, void *buf, size_t nbyte, off_t offset, XrdPosixCallBackIO *cbp) |
static ssize_t | Pwrite (int fildes, const void *buf, size_t nbyte, off_t offset) |
Pwrite() conforms to POSIX.1-2001 pwrite() More... | |
static void | Pwrite (int fildes, const void *buf, size_t nbyte, off_t offset, XrdPosixCallBackIO *cbp) |
static int | QueryChksum (const char *path, time_t &mtime, char *buff, int blen) |
static long long | QueryOpaque (const char *path, char *buff, int blen) |
static ssize_t | Read (int fildes, void *buf, size_t nbyte) |
Read() conforms to POSIX.1-2001 read() More... | |
static ssize_t | Readv (int fildes, const struct iovec *iov, int iovcnt) |
Readv() conforms to POSIX.1-2001 readv() More... | |
static struct dirent * | Readdir (DIR *dirp) |
static struct dirent64 * | Readdir64 (DIR *dirp) |
static int | Readdir_r (DIR *dirp, struct dirent *entry, struct dirent **result) |
static int | Readdir64_r (DIR *dirp, struct dirent64 *entry, struct dirent64 **result) |
static int | Rename (const char *oldpath, const char *newpath) |
Rename() conforms to POSIX.1-2001 rename() More... | |
static void | Rewinddir (DIR *dirp) |
Rewinddir() conforms to POSIX.1-2001 rewinddir() More... | |
static int | Rmdir (const char *path) |
Rmdir() conforms to POSIX.1-2001 rmdir() More... | |
static void | Seekdir (DIR *dirp, long loc) |
Seekdir() conforms to POSIX.1-2001 seekdir() More... | |
static int | Stat (const char *path, struct stat *buf) |
Stat() conforms to POSIX.1-2001 stat() More... | |
static int | Statfs (const char *path, struct statfs *buf) |
static int | Statvfs (const char *path, struct statvfs *buf) |
Statvfs() conforms to POSIX.1-2001 statvfs() More... | |
static long | Telldir (DIR *dirp) |
Telldir() conforms to POSIX.1-2001 telldir() More... | |
static int | Truncate (const char *path, off_t offset) |
Telldir() conforms to POSIX.1-2001 telldir() More... | |
static int | Unlink (const char *path) |
Unlink() conforms to POSIX.1-2001 unlink() More... | |
static void | VRead (int fildes, const XrdOucIOVec *readV, int n, XrdPosixCallBackIO *cbp) |
static ssize_t | VRead (int fildes, const XrdOucIOVec *readV, int n) |
static ssize_t | Write (int fildes, const void *buf, size_t nbyte) |
Write() conforms to POSIX.1-2001 write() More... | |
static ssize_t | Writev (int fildes, const struct iovec *iov, int iovcnt) |
Writev() conforms to POSIX.1-2001 writev() More... | |
static bool | isXrootdDir (DIR *dirp) |
static bool | myFD (int fd) |
static void | setCache (XrdOucCache *cP) |
static void | setCache (XrdOucCache2 *cP) |
static void | setDebug (int val, bool doDebug=false) |
static void | setEnv (const char *kword, int kval) |
static void | setIPV4 (bool userv4) |
static void | setLogger (XrdSysLogger *logP) |
static void | setNumCB (int numcb) |
static void | setN2N (XrdOucName2Name *pN2N, int opts=0) |
static void | setSched (XrdScheduler *sP) |
Static Public Attributes | |
static const int | isStream = 0x40000000 |
Static Private Member Functions | |
static int | Fault (XrdPosixFile *fp, int ecode) |
static void | initStat (struct stat *buf) |
static void | initXdev (dev_t &st_dev, dev_t &st_rdev) |
Static Private Attributes | |
static int | baseFD |
static int | initDone |
POSIX interface to XRootD with some extensions, as noted.
XrdPosixXrootd::XrdPosixXrootd | ( | int | maxfd = 255 , |
int | maxdir = 0 , |
||
int | maxthr = 0 |
||
) |
Referenced by fdOrigin().
XrdPosixXrootd::~XrdPosixXrootd | ( | ) |
Referenced by fdOrigin().
|
static |
Access() conforms to POSIX.1-2001 access()
|
static |
Close() conforms to POSIX.1-2001 close()
|
static |
Closedir() conforms to POSIX.1-2001 closedir()
|
static |
endPoint() is a POSIX extension and returns the location of an open file.
FD | File descriptor of an open file in question. |
Buff | Pointer to the buffer to receive '<host>:<port>' of the server. |
Blen | Size of the buffer, it must be big enough for the result. |
|
staticprivate |
Referenced by fdOrigin().
|
inline |
The following methods are considered private but defined as public to allow XrdPosix 'C' functions and XrdPss classes access private members.
References baseFD, Fault(), initStat(), initXdev(), isXrootdDir(), myFD(), setCache(), setDebug(), setEnv(), setIPV4(), setLogger(), setN2N(), setNumCB(), setSched(), XrdPosixXrootd(), and ~XrdPosixXrootd().
|
static |
Fstat() conforms to POSIX.1-2001 fstat()
|
static |
Fsync() conforms to POSIX.1-2001 fsync()
|
static |
|
static |
Ftruncate() conforms to POSIX.1-2001 ftruncate()
|
static |
Getxattr() is a POSIX extension and conforms to Linux 2.4 getxattr(). This method returns attributes associated with a file. The format does not correspond to information returned by Linux. Refer to the XRootD protocol reference for the detailed description of the information returned.
path | pointer to the path whose attributes are to be returned |
name | name of the attribute to be returned. Valid attributes are xrootd.cksum - file's checksum xrootd.space - space associated with the path xrootd.xattr - server specific extended attributes for path |
value | pointer to the buffer to receive the attribute values. |
size | size of the buffer (value). If size is zero, only the maximum length of the attribute value is returned. |
|
staticprivate |
Referenced by fdOrigin().
|
staticprivate |
Referenced by fdOrigin().
|
static |
Referenced by fdOrigin().
|
static |
Lseek() conforms to POSIX.1-2001 lseek()
|
static |
Mkdir() conforms to POSIX.1-2001 mkdir()
|
static |
Referenced by fdOrigin().
|
static |
|
static |
Opendir() conforms to POSIX.1-2001 opendir()
|
static |
Pread() conforms to POSIX.1-2001 pread()
|
static |
|
static |
Pwrite() conforms to POSIX.1-2001 pwrite()
|
static |
|
static |
QueryChksum() is a POSIX extension and returns a file's modification time and its associated checksum value.
path | path associated with the file whose checksum is wanted. |
mtime | where the file's modification time (st_mtime) is placed. |
buff | pointer to the buffer to hold the checksum value. |
blen | the length of the buffer. |
|
static |
QueryOpaque() is a POSIX extension and returns a file's implementation specific information.
path | path associated with the file whose information is wanted. |
buff | pointer to the buffer to hold the information. |
blen | the length of the buffer. |
|
static |
Read() conforms to POSIX.1-2001 read()
|
static |
readdir() conforms to POSIX.1-2001 readdir() and is normally equivalent to readdir64(). The latter is provided for those platforms that require a specific 64-bit interface to directory information, which is now rare.
|
static |
|
static |
|
static |
readdir_r() conforms to POSIX.1-2001 readdir_r() and is normally equivalent to readdir64_r(). The latter is provided for those platforms that require a specific 64-bit interface to directory information, which is now rare.
|
static |
Readv() conforms to POSIX.1-2001 readv()
|
static |
Rename() conforms to POSIX.1-2001 rename()
|
static |
Rewinddir() conforms to POSIX.1-2001 rewinddir()
|
static |
Rmdir() conforms to POSIX.1-2001 rmdir()
|
static |
Seekdir() conforms to POSIX.1-2001 seekdir()
|
static |
Referenced by fdOrigin().
|
static |
|
static |
Referenced by fdOrigin().
|
static |
Referenced by fdOrigin().
|
static |
Referenced by fdOrigin().
|
static |
Referenced by fdOrigin().
|
static |
Referenced by fdOrigin().
|
static |
Referenced by fdOrigin().
|
static |
Referenced by fdOrigin().
|
static |
Stat() conforms to POSIX.1-2001 stat()
|
static |
Statfs() generally conforms to the platform-specific definition of statfs(). There is no specific POSIX specification for this call.
|
static |
Statvfs() conforms to POSIX.1-2001 statvfs()
|
static |
Telldir() conforms to POSIX.1-2001 telldir()
|
static |
Telldir() conforms to POSIX.1-2001 telldir()
|
static |
Unlink() conforms to POSIX.1-2001 unlink()
|
static |
VRead() is a POSIX extension and allows one to read multiple chunks of a file in one operation.
fildes | file descriptor of a file opened for reading. |
readV | the read vector of offset/length/buffer triplets. Data at each offset of the specifiued length is placed in buffer. |
n | the number of elements in the readV vector. |
cbp | pointer to the callback object for async execution. |
|
static |
|
static |
Write() conforms to POSIX.1-2001 write()
|
static |
Writev() conforms to POSIX.1-2001 writev()
|
staticprivate |
Referenced by fdOrigin().
|
staticprivate |
|
static |
Open() conforms to POSIX.1-2001 open() when extensions are not used.
Extensions:
cbP | Pointer to a callback object. When specified, the open is performed in the background and the Comp[lete() is called when the Open() completes. See XrdPosixCallBack.hh for complete details. |