Utilities
StorageFactory
interface
LocalFileSystem.h
Go to the documentation of this file.
1
#ifndef STORAGE_FACTORY_LOCAL_FILE_SYSTEM_H
2
#define STORAGE_FACTORY_LOCAL_FILE_SYSTEM_H
3
#include <vector>
4
#include <string>
5
#include <utility>
6
7
struct
stat
;
8
struct
statfs;
9
struct
mntent;
10
11
class
LocalFileSystem
{
12
struct
FSInfo
;
13
14
public
:
15
LocalFileSystem
(
void
);
16
~LocalFileSystem
(
void
);
17
18
bool
isLocalPath
(
const
std::string
&
path
)
const
;
19
std::pair<std::string, std::string>
findCachePath
(
const
std::vector<std::string> &
paths
,
double
minFreeSpace)
const
;
20
21
private
:
22
int
readFSTypes
(
void
);
23
FSInfo
*
initFSInfo
(
void
*
p
);
24
int
initFSList
(
void
);
25
int
statFSInfo
(
FSInfo
*
i
)
const
;
26
FSInfo
*
findMount
(
const
char
*
path
,
struct
statfs *sfs,
struct
stat
*
s
, std::vector<std::string> &)
const
;
27
28
std::vector<FSInfo *>
fs_
;
29
std::vector<std::string>
fstypes_
;
30
31
// undefined, no semantics
32
LocalFileSystem
(
LocalFileSystem
&) =
delete
;
33
void
operator=
(
LocalFileSystem
&) =
delete
;
34
};
35
36
#endif // STORAGE_FACTORY_LOCAL_FILE_SYSTEM_H
LocalFileSystem::initFSList
int initFSList(void)
Definition:
LocalFileSystem.cc:196
LocalFileSystem::findMount
FSInfo * findMount(const char *path, struct statfs *sfs, struct stat *s, std::vector< std::string > &) const
Definition:
LocalFileSystem.cc:294
mps_fire.i
i
Definition:
mps_fire.py:355
LocalFileSystem::fstypes_
std::vector< std::string > fstypes_
Definition:
LocalFileSystem.h:29
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
LocalFileSystem::fs_
std::vector< FSInfo * > fs_
Definition:
LocalFileSystem.h:28
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
LocalFileSystem::findCachePath
std::pair< std::string, std::string > findCachePath(const std::vector< std::string > &paths, double minFreeSpace) const
Definition:
LocalFileSystem.cc:431
hgcalPlots.stat
stat
Definition:
hgcalPlots.py:1111
LocalFileSystem::statFSInfo
int statFSInfo(FSInfo *i) const
Definition:
LocalFileSystem.cc:241
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
LocalFileSystem::operator=
void operator=(LocalFileSystem &)=delete
LocalFileSystem::readFSTypes
int readFSTypes(void)
Definition:
LocalFileSystem.cc:59
LocalFileSystem::initFSInfo
FSInfo * initFSInfo(void *p)
Definition:
LocalFileSystem.cc:128
LocalFileSystem::~LocalFileSystem
~LocalFileSystem(void)
Definition:
LocalFileSystem.cc:526
LocalFileSystem::LocalFileSystem
LocalFileSystem(void)
Definition:
LocalFileSystem.cc:517
LocalFileSystem::FSInfo
Information about file systems on this node.
Definition:
LocalFileSystem.cc:27
Skims_PA_cff.paths
paths
Definition:
Skims_PA_cff.py:18
LocalFileSystem
Definition:
LocalFileSystem.h:11
castor_dqm_sourceclient_file_cfg.path
path
Definition:
castor_dqm_sourceclient_file_cfg.py:37
LocalFileSystem::isLocalPath
bool isLocalPath(const std::string &path) const
Definition:
LocalFileSystem.cc:382
Generated for CMSSW Reference Manual by
1.8.16