CMS 3D CMS Logo

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 
12  struct FSInfo;
13 
14 public:
15  LocalFileSystem(void);
16 
17  // undefined, no semantics
18  LocalFileSystem(LocalFileSystem &) = delete;
19  void operator=(LocalFileSystem &) = delete;
20 
21  ~LocalFileSystem(void);
22 
23  bool isLocalPath(const std::string &path) const;
24  std::pair<std::string, std::string> findCachePath(const std::vector<std::string> &paths, double minFreeSpace) const;
25 
26 private:
27  int readFSTypes(void);
28  FSInfo *initFSInfo(void *p);
29  int initFSList(void);
30  int statFSInfo(FSInfo *i) const;
31  FSInfo *findMount(const char *path, struct statfs *sfs, struct stat *s, std::vector<std::string> &) const;
32 
33  std::vector<FSInfo *> fs_;
34  std::vector<std::string> fstypes_;
35 };
36 
37 #endif // STORAGE_FACTORY_LOCAL_FILE_SYSTEM_H
LocalFileSystem::initFSList
int initFSList(void)
Definition: LocalFileSystem.cc:191
LocalFileSystem::findMount
FSInfo * findMount(const char *path, struct statfs *sfs, struct stat *s, std::vector< std::string > &) const
Definition: LocalFileSystem.cc:289
mps_fire.i
i
Definition: mps_fire.py:428
LocalFileSystem::fstypes_
std::vector< std::string > fstypes_
Definition: LocalFileSystem.h:34
LocalFileSystem::fs_
std::vector< FSInfo * > fs_
Definition: LocalFileSystem.h:33
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:426
LocalFileSystem::statFSInfo
int statFSInfo(FSInfo *i) const
Definition: LocalFileSystem.cc:236
LocalFileSystem::operator=
void operator=(LocalFileSystem &)=delete
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
LocalFileSystem::readFSTypes
int readFSTypes(void)
Definition: LocalFileSystem.cc:58
LocalFileSystem::initFSInfo
FSInfo * initFSInfo(void *p)
Definition: LocalFileSystem.cc:123
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
LocalFileSystem::~LocalFileSystem
~LocalFileSystem(void)
Definition: LocalFileSystem.cc:521
LocalFileSystem::LocalFileSystem
LocalFileSystem(void)
Definition: LocalFileSystem.cc:512
LocalFileSystem::FSInfo
Information about file systems on this node.
Definition: LocalFileSystem.cc:26
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
edm_modernize_messagelogger.stat
stat
Definition: edm_modernize_messagelogger.py:27
LocalFileSystem::isLocalPath
bool isLocalPath(const std::string &path) const
Definition: LocalFileSystem.cc:377