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  void issueWarning();
20 
21 private:
22  int readFSTypes(void);
23  FSInfo * initFSInfo(void *p);
24  int initFSList(void);
25  int statFSInfo(FSInfo *i);
26  FSInfo * findMount(const char *path, struct statfs *sfs, struct stat *s);
27 
28  std::vector<FSInfo *> fs_;
29  std::vector<std::string> fstypes_;
31 
32  // undefined, no semantics
34  void operator=(LocalFileSystem &);
35 };
36 
37 #endif // STORAGE_FACTORY_LOCAL_FILE_SYSTEM_H
int i
Definition: DBlmapReader.cc:9
int statFSInfo(FSInfo *i)
Information about file systems on this node.
std::string unusable_dir_warnings_
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)
tuple path
else: Piece not in the list, fine.
std::vector< std::string > fstypes_
FSInfo * initFSInfo(void *p)
std::vector< FSInfo * > fs_
void operator=(LocalFileSystem &)