CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
6 struct stat;
7 struct statfs;
8 struct mntent;
9 
11 {
12  struct FSInfo;
13 public:
14  LocalFileSystem(void);
15  ~LocalFileSystem(void);
16 
17  bool isLocalPath(const std::string &path);
18  std::string findCachePath(const std::vector<std::string> &paths, double minFreeSpace);
19 
20 private:
21  int readFSTypes(void);
22  FSInfo * initFSInfo(void *p);
23  int initFSList(void);
24  int statFSInfo(FSInfo *i);
25  FSInfo * findMount(const char *path, struct statfs *sfs, struct stat *s);
26 
27  std::vector<FSInfo *> fs_;
28  std::vector<std::string> fstypes_;
29 
30  // undefined, no semantics
32  void operator=(LocalFileSystem &);
33 };
34 
35 #endif // STORAGE_FACTORY_LOCAL_FILE_SYSTEM_H
int i
Definition: DBlmapReader.cc:9
int statFSInfo(FSInfo *i)
Information about file systems on this node.
FSInfo * findMount(const char *path, struct statfs *sfs, struct stat *s)
std::string findCachePath(const std::vector< std::string > &paths, double minFreeSpace)
bool isLocalPath(const std::string &path)
int readFSTypes(void)
std::vector< std::string > fstypes_
FSInfo * initFSInfo(void *p)
std::vector< FSInfo * > fs_
void operator=(LocalFileSystem &)