xrootd
Loading...
Searching...
No Matches
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#include <XrdOss/XrdOss.hh>
30
31//------------------------------------------------------------------------------
51//------------------------------------------------------------------------------
52
53class XrdCephOss : public XrdOss {
54public:
55 XrdCephOss(const char *, XrdSysError &);
56 virtual ~XrdCephOss();
57
58 int Configure(const char *, XrdSysError &);
59
60 virtual int Chmod(const char *, mode_t mode, XrdOucEnv *eP=0);
61 virtual int Create(const char *, const char *, mode_t, XrdOucEnv &, int opts=0);
62 virtual int Init(XrdSysLogger *, const char*);
63 virtual int Mkdir(const char *, mode_t mode, int mkpath=0, XrdOucEnv *eP=0);
64 virtual int Remdir(const char *, int Opts=0, XrdOucEnv *eP=0);
65 virtual int Rename(const char *, const char *, XrdOucEnv *eP1=0, XrdOucEnv *eP2=0);
66 virtual int Stat(const char *, struct stat *, int opts=0, XrdOucEnv *eP=0);
67 virtual int StatFS(const char *path, char *buff, int &blen, XrdOucEnv *eP=0);
68 virtual int StatVS(XrdOssVSInfo *sP, const char *sname=0, int updt=0);
69 virtual int Truncate(const char *, unsigned long long, XrdOucEnv *eP=0);
70 virtual int Unlink(const char *path, int Opts=0, XrdOucEnv *eP=0);
71 virtual XrdOssDF *newDir(const char *tident);
72 virtual XrdOssDF *newFile(const char *tident);
73
74};
75
76#endif /* __CEPH_OSS_HH__ */
#define stat(a, b)
Definition XrdPosix.hh:96
Definition XrdCephOss.hh:53
virtual int Chmod(const char *, mode_t mode, XrdOucEnv *eP=0)
virtual XrdOssDF * newFile(const char *tident)
virtual int Truncate(const char *, unsigned long long, XrdOucEnv *eP=0)
XrdCephOss(const char *, XrdSysError &)
virtual int StatFS(const char *path, char *buff, int &blen, XrdOucEnv *eP=0)
virtual ~XrdCephOss()
virtual int Remdir(const char *, int Opts=0, XrdOucEnv *eP=0)
virtual int Stat(const char *, struct stat *, int opts=0, XrdOucEnv *eP=0)
virtual int StatVS(XrdOssVSInfo *sP, const char *sname=0, int updt=0)
virtual int Create(const char *, const char *, mode_t, XrdOucEnv &, int opts=0)
virtual int Rename(const char *, const char *, XrdOucEnv *eP1=0, XrdOucEnv *eP2=0)
virtual XrdOssDF * newDir(const char *tident)
virtual int Unlink(const char *path, int Opts=0, XrdOucEnv *eP=0)
virtual int Init(XrdSysLogger *, const char *)
virtual int Mkdir(const char *, mode_t mode, int mkpath=0, XrdOucEnv *eP=0)
int Configure(const char *, XrdSysError &)
Definition XrdOss.hh:63
Definition XrdOssVS.hh:88
Definition XrdOss.hh:498
Definition XrdOucEnv.hh:42
Definition XrdSysError.hh:90
Definition XrdSysLogger.hh:53