xrootd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
XrdPfcFSctl.hh
Go to the documentation of this file.
1 #ifndef __XRDPFCFSCTL_H__
2 #define __XRDPFCFSCTL_H__
3 /******************************************************************************/
4 /* */
5 /* X r d P f c F S c t l . h h */
6 /* */
7 /* (c) 2023 by the Board of Trustees of the Leland Stanford, Jr., University */
8 /* All Rights Reserved */
9 /* Produced by Andrew Hanushevsky for Stanford University under contract */
10 /* DE-AC02-76-SFO0515 with the Department of Energy */
11 /* */
12 /* This file is part of the XRootD software suite. */
13 /* */
14 /* XRootD is free software: you can redistribute it and/or modify it under */
15 /* the terms of the GNU Lesser General Public License as published by the */
16 /* Free Software Foundation, either version 3 of the License, or (at your */
17 /* option) any later version. */
18 /* */
19 /* XRootD is distributed in the hope that it will be useful, but WITHOUT */
20 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
21 /* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */
22 /* License for more details. */
23 /* */
24 /* You should have received a copy of the GNU Lesser General Public License */
25 /* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */
26 /* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */
27 /* */
28 /* The copyright holder's institutional names and contributor's names may not */
29 /* be used to endorse or promote products derived from this software without */
30 /* specific prior written permission of the institution or contributor. */
31 /******************************************************************************/
32 
33 #include "XrdOfs/XrdOfsFSctl_PI.hh"
34 #include "XrdSys/XrdSysError.hh"
35 
36 class XrdOfsHandle;
37 class XrdOucErrInfo;
38 class XrdOucEnv;
39 class XrdSecEntity;
40 class XrdSfsFile;
41 class XrdSysLogger;
42 class XrdSysTrace;
43 
44 namespace XrdPfc {class Cache;}
45 
47 {public:
48 
49 virtual bool Configure(const char *CfgFN,
50  const char *Parms,
51  XrdOucEnv *envP,
52  const Plugins &plugs) override;
53 
54 virtual int FSctl(const int cmd,
55  int alen,
56  const char *args,
57  XrdSfsFile &file,
58  XrdOucErrInfo &eInfo,
59  const XrdSecEntity *client = 0) override;
60 
61 virtual int FSctl(const int cmd,
62  XrdSfsFSctl &args,
63  XrdOucErrInfo &eInfo,
64  const XrdSecEntity *client = 0) override;
65 
66 //------------------------------------------------------------------------------
68 //------------------------------------------------------------------------------
69 
70  XrdPfcFSctl(XrdPfc::Cache &cInst, XrdSysLogger *logP);
71 
72 //------------------------------------------------------------------------------
74 //------------------------------------------------------------------------------
75 
76 virtual ~XrdPfcFSctl() {}
77 
78 private:
80 
85 const char * m_traceID;
86 };
87 #endif
XrdPfc::Cache & myCache
Definition: XrdPfcFSctl.hh:81
virtual int FSctl(const int cmd, int alen, const char *args, XrdSfsFile &file, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0) override
virtual bool Configure(const char *CfgFN, const char *Parms, XrdOucEnv *envP, const Plugins &plugs) override
XrdSysTrace * sysTrace
Definition: XrdPfcFSctl.hh:84
Attaches/creates and detaches/deletes cache-io objects for disk based cache.
Definition: XrdPfc.hh:263
XrdOfsHandle * hProc
Definition: XrdPfcFSctl.hh:82
XrdPfcFSctl(XrdPfc::Cache &cInst, XrdSysLogger *logP)
Constructor.
const char * m_traceID
Definition: XrdPfcFSctl.hh:85
Definition: XrdSysError.hh:89
Definition: XrdSysTrace.hh:48
Definition: XrdOfsHandle.hh:125
The Plugins struct is used to pass plugin pointers to configure.
Definition: XrdOfsFSctl_PI.hh:60
&lt; SFS_FSCTL_PLUGIN/PLUGIO/PLUGXC parms
Definition: XrdSfsInterface.hh:160
Definition: XrdOucErrInfo.hh:100
Definition: XrdOucEnv.hh:41
XrdCmsCache Cache
XrdSysTrace * GetTrace()
Definition: XrdPfcFSctl.hh:79
Definition: XrdOfsFSctl_PI.hh:51
Definition: XrdSysLogger.hh:52
XrdSysError Log
Definition: XrdPfcFSctl.hh:83
Definition: XrdSecEntity.hh:64
Definition: XrdSfsInterface.hh:368
Definition: XrdPfcFSctl.hh:46
virtual ~XrdPfcFSctl()
Destructor.
Definition: XrdPfcFSctl.hh:76