xrootd
Loading...
Searching...
No Matches
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
34#include "XrdSys/XrdSysError.hh"
35
36class XrdOfsHandle;
37class XrdOucErrInfo;
38class XrdOucEnv;
39class XrdSecEntity;
40class XrdSfsFile;
41class XrdSysLogger;
42class XrdSysTrace;
43
44namespace XrdPfc {class Cache;}
45
47{public:
48
49virtual bool Configure(const char *CfgFN,
50 const char *Parms,
51 XrdOucEnv *envP,
52 const Plugins &plugs) override;
53
54virtual 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
61virtual int FSctl(const int cmd,
62 XrdSfsFSctl &args,
63 XrdOucErrInfo &eInfo,
64 const XrdSecEntity *client = 0) override;
65
66//------------------------------------------------------------------------------
68//------------------------------------------------------------------------------
69
71
72//------------------------------------------------------------------------------
74//------------------------------------------------------------------------------
75
76virtual ~XrdPfcFSctl() {}
77
78private:
80
85const char * m_traceID;
86};
87#endif
Definition XrdOfsFSctl_PI.hh:52
Definition XrdOfsHandle.hh:126
Definition XrdOucEnv.hh:42
Definition XrdOucErrInfo.hh:101
Definition XrdPfcFSctl.hh:47
virtual ~XrdPfcFSctl()
Destructor.
Definition XrdPfcFSctl.hh:76
virtual bool Configure(const char *CfgFN, const char *Parms, XrdOucEnv *envP, const Plugins &plugs) override
XrdSysError Log
Definition XrdPfcFSctl.hh:83
XrdPfc::Cache & myCache
Definition XrdPfcFSctl.hh:81
XrdPfcFSctl(XrdPfc::Cache &cInst, XrdSysLogger *logP)
Constructor.
XrdSysTrace * sysTrace
Definition XrdPfcFSctl.hh:84
virtual int FSctl(const int cmd, XrdSfsFSctl &args, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0) override
XrdSysTrace * GetTrace()
Definition XrdPfcFSctl.hh:79
virtual int FSctl(const int cmd, int alen, const char *args, XrdSfsFile &file, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0) override
XrdOfsHandle * hProc
Definition XrdPfcFSctl.hh:82
const char * m_traceID
Definition XrdPfcFSctl.hh:85
Attaches/creates and detaches/deletes cache-io objects for disk based cache.
Definition XrdPfc.hh:264
Definition XrdSecEntity.hh:65
Definition XrdSfsInterface.hh:369
Definition XrdSysError.hh:90
Definition XrdSysLogger.hh:53
Definition XrdSysTrace.hh:49
XrdCmsCache Cache
Definition XrdPfc.hh:41
The Plugins struct is used to pass plugin pointers to configure.
Definition XrdOfsFSctl_PI.hh:61
< SFS_FSCTL_PLUGIN/PLUGIO/PLUGXC parms
Definition XrdSfsInterface.hh:161