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() | |
static int | Close (int fildes) |
Close() conforms to POSIX.1-2001 close() | |
static int | Closedir (DIR *dirp) |
Closedir() conforms to POSIX.1-2001 closedir() | |
static int | endPoint (int FD, char *Buff, int Blen) |
static int | Fstat (int fildes, struct stat *buf) |
Fstat() conforms to POSIX.1-2001 fstat() | |
static int | Fsync (int fildes) |
Fsync() conforms to POSIX.1-2001 fsync() | |
static void | Fsync (int fildes, XrdPosixCallBackIO *cbp) |
static int | Ftruncate (int fildes, off_t offset) |
Ftruncate() conforms to POSIX.1-2001 ftruncate() | |
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() | |
static int | Mkdir (const char *path, mode_t mode) |
Mkdir() conforms to POSIX.1-2001 mkdir() | |
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() | |
static ssize_t | Pread (int fildes, void *buf, size_t nbyte, off_t offset) |
Pread() conforms to POSIX.1-2001 pread() | |
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() | |
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() | |
static ssize_t | Readv (int fildes, const struct iovec *iov, int iovcnt) |
Readv() conforms to POSIX.1-2001 readv() | |
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() | |
static void | Rewinddir (DIR *dirp) |
Rewinddir() conforms to POSIX.1-2001 rewinddir() | |
static int | Rmdir (const char *path) |
Rmdir() conforms to POSIX.1-2001 rmdir() | |
static void | Seekdir (DIR *dirp, long loc) |
Seekdir() conforms to POSIX.1-2001 seekdir() | |
static int | Stat (const char *path, struct stat *buf) |
Stat() conforms to POSIX.1-2001 stat() | |
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() | |
static long | Telldir (DIR *dirp) |
Telldir() conforms to POSIX.1-2001 telldir() | |
static int | Truncate (const char *path, off_t offset) |
Telldir() conforms to POSIX.1-2001 telldir() | |
static int | Unlink (const char *path) |
Unlink() conforms to POSIX.1-2001 unlink() | |
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() | |
static ssize_t | Writev (int fildes, const struct iovec *iov, int iovcnt) |
Writev() conforms to POSIX.1-2001 writev() | |
static bool | isXrootdDir (DIR *dirp) |
static bool | myFD (int fd) |
Static Public Attributes | |
static const int | isStream = 0x40000000 |
Static Private Member Functions | |
static int | Fault (XrdPosixFile *fp, int ecode) |
static int | Open (const char *path, int oflag, mode_t mode, XrdPosixCallBack *cbP, XrdPosixInfo *infoP) |
static bool | OpenCache (XrdPosixFile &file, XrdPosixInfo &Info) |
static int | EcRename (const char *, const char *, XrdPosixAdmin *) |
static int | EcStat (const char *, struct stat *, XrdPosixAdmin *) |
static int | EcUnlink (const char *, XrdPosixAdmin *) |
Static Private Attributes | |
static int | baseFD |
static int | initDone |
Friends | |
class | XrdPosixConfig |
class | XrdPosixExtra |
POSIX interface to XRootD with some extensions, as noted.
XrdPosixXrootd::XrdPosixXrootd | ( | int | maxfd = 255 , |
int | maxdir = 0 , |
||
int | maxthr = 0 |
||
) |
XrdPosixXrootd::~XrdPosixXrootd | ( | ) |
|
static |
|
static |
Closedir() conforms to POSIX.1-2001 closedir()
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
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 |
|
inline |
The following methods are considered private but defined as public to allow XrdPosix 'C' functions and XrdPss classes access private members.
References baseFD.
|
static |
|
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. |
|
static |
|
static |
|
static |
|
static |
|
staticprivate |
|
static |
|
staticprivate |
|
static |
|
static |
|
static |
|
static |
|
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 |
|
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 |
|
static |
|
static |
Rewinddir() conforms to POSIX.1-2001 rewinddir()
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
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 |
|
friend |
|
friend |
|
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. |