44 if (rc < 0)
return rc;
47 }
catch (std::exception &e) {
48 XrdCephEroute.Say(
"open : invalid syntax in file parameters");
67 if (-ENOENT == retval || -ENOTSUP == retval) {
72 snprintf(err_str, 100,
"WARNING! The file (fd %d) seem to be sparse, this is not expected",
m_fd);
90 return Read(buff, offset, blen);
99 if (-ENOENT == retval || -ENOTSUP == retval) {
104 snprintf(err_str, 100,
"WARNING! The file (fd %d) seem to be sparse, this is not expected",
m_fd);
static void aioReadCallback(XrdSfsAio *aiop, size_t rc)
static void aioWriteCallback(XrdSfsAio *aiop, size_t rc)
XrdSysError XrdCephEroute(0)
ssize_t ceph_aio_write(int fd, XrdSfsAio *aiop, AioCB *cb)
ssize_t ceph_aio_read(int fd, XrdSfsAio *aiop, AioCB *cb)
ssize_t ceph_nonstriper_readv(int fd, XrdOucIOVec *readV, int n)
ssize_t ceph_posix_pread(int fd, void *buf, size_t count, off64_t offset)
int ceph_posix_fstat(int fd, struct stat *buf)
int ceph_posix_fsync(int fd)
int ceph_posix_close(int fd)
int ceph_posix_ftruncate(int fd, unsigned long long size)
int ceph_posix_open(XrdOucEnv *env, const char *pathname, int flags, mode_t mode)
ssize_t ceph_posix_nonstriper_pread(int fd, void *buf, size_t count, off64_t offset)
ssize_t ceph_striper_readv(int fd, XrdOucIOVec *readV, int n)
ssize_t ceph_posix_pwrite(int fd, const void *buf, size_t count, off64_t offset)
virtual ssize_t Read(off_t offset, size_t blen)
virtual int Open(const char *path, int flags, mode_t mode, XrdOucEnv &env)
XrdCephOssFile(XrdCephOss *cephoss)
virtual ssize_t Write(const void *buff, off_t offset, size_t blen)
virtual int Fstat(struct stat *buff)
virtual int Ftruncate(unsigned long long)
virtual ssize_t ReadRaw(void *, off_t, size_t)
virtual ssize_t ReadV(XrdOucIOVec *readV, int n)
virtual int Close(long long *retsz=0)
virtual void doneRead()=0
virtual void doneWrite()=0