XRootD
XrdCephOss.hh
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // Copyright (c) 2014-2015 by European Organization for Nuclear Research (CERN)
3 // Author: Sebastien Ponce <sebastien.ponce@cern.ch>
4 //------------------------------------------------------------------------------
5 // This file is part of the XRootD software suite.
6 //
7 // XRootD is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU Lesser General Public License as published by
9 // the Free Software Foundation, either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // XRootD is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU Lesser General Public License
18 // along with XRootD. If not, see <http://www.gnu.org/licenses/>.
19 //
20 // In applying this licence, CERN does not waive the privileges and immunities
21 // granted to it by virtue of its status as an Intergovernmental Organization
22 // or submit itself to any jurisdiction.
23 //------------------------------------------------------------------------------
24 
25 #ifndef __CEPH_OSS_HH__
26 #define __CEPH_OSS_HH__
27 
28 #include <string>
29 
30 #include <XrdOss/XrdOss.hh>
31 #include <XrdSys/XrdSysError.hh>
32 
33 //------------------------------------------------------------------------------
53 //------------------------------------------------------------------------------
54 
55 class XrdCephOss : public XrdOss {
56 public:
57  XrdCephOss(const char *, XrdSysError &);
58  virtual ~XrdCephOss();
59 
60  int Configure(const char *, XrdSysError &);
61 
62  virtual int Chmod(const char *, mode_t mode, XrdOucEnv *eP=0);
63  virtual int Create(const char *, const char *, mode_t, XrdOucEnv &, int opts=0);
64  virtual int Init(XrdSysLogger *, const char*);
65  virtual int Mkdir(const char *, mode_t mode, int mkpath=0, XrdOucEnv *eP=0);
66  virtual int Remdir(const char *, int Opts=0, XrdOucEnv *eP=0);
67  virtual int Rename(const char *, const char *, XrdOucEnv *eP1=0, XrdOucEnv *eP2=0);
68  virtual int Stat(const char *, struct stat *, int opts=0, XrdOucEnv *eP=0);
69  virtual int StatFS(const char *path, char *buff, int &blen, XrdOucEnv *eP=0);
70  virtual int StatVS(XrdOssVSInfo *sP, const char *sname=0, int updt=0);
71  virtual int Truncate(const char *, unsigned long long, XrdOucEnv *eP=0);
72  virtual int Unlink(const char *path, int Opts=0, XrdOucEnv *eP=0);
73  virtual XrdOssDF *newDir(const char *tident);
74  virtual XrdOssDF *newFile(const char *tident);
75 
76 };
77 
78 #endif /* __CEPH_OSS_HH__ */
#define tident
int stat(const char *path, struct stat *buf)
struct myOpts opts
virtual int Truncate(const char *, unsigned long long, XrdOucEnv *eP=0)
Definition: XrdCephOss.cc:229
virtual int Rename(const char *, const char *, XrdOucEnv *eP1=0, XrdOucEnv *eP2=0)
Definition: XrdCephOss.cc:178
virtual int StatVS(XrdOssVSInfo *sP, const char *sname=0, int updt=0)
Definition: XrdCephOss.cc:217
virtual int Remdir(const char *, int Opts=0, XrdOucEnv *eP=0)
Definition: XrdCephOss.cc:174
virtual int Create(const char *, const char *, mode_t, XrdOucEnv &, int opts=0)
Definition: XrdCephOss.cc:161
XrdCephOss(const char *, XrdSysError &)
Definition: XrdCephOss.cc:84
virtual int Mkdir(const char *, mode_t mode, int mkpath=0, XrdOucEnv *eP=0)
Definition: XrdCephOss.cc:169
virtual int Stat(const char *, struct stat *, int opts=0, XrdOucEnv *eP=0)
Definition: XrdCephOss.cc:185
virtual XrdOssDF * newDir(const char *tident)
Definition: XrdCephOss.cc:249
virtual int Chmod(const char *, mode_t mode, XrdOucEnv *eP=0)
Definition: XrdCephOss.cc:157
virtual int Unlink(const char *path, int Opts=0, XrdOucEnv *eP=0)
Definition: XrdCephOss.cc:240
virtual ~XrdCephOss()
Definition: XrdCephOss.cc:88
virtual int StatFS(const char *path, char *buff, int &blen, XrdOucEnv *eP=0)
Definition: XrdCephOss.cc:205
virtual int Init(XrdSysLogger *, const char *)
Definition: XrdCephOss.cc:166
virtual XrdOssDF * newFile(const char *tident)
Definition: XrdCephOss.cc:253
int Configure(const char *, XrdSysError &)
Definition: XrdCephOss.cc:94
int Opts
Definition: XrdMpxStats.cc:58