/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWStorage/StorageFactory/interface/LocalFileSystem.h
38 строк
1 KB
Chris Jones
Move Utilities/StorageFactory to FWStorage/StorageFactory
10 дек 2025, 18:12
10 дек 2025, 18:12
852ff34
Код
Авторство
О чём код?
#ifndef STORAGE_FACTORY_LOCAL_FILE_SYSTEM_H #define STORAGE_FACTORY_LOCAL_FILE_SYSTEM_H #include <vector> #include <string> #include <utility> struct stat; struct statfs; struct mntent; namespace edm::storage { class LocalFileSystem { struct FSInfo; public: LocalFileSystem(void); // undefined, no semantics LocalFileSystem(LocalFileSystem &) = delete; void operator=(LocalFileSystem &) = delete; ~LocalFileSystem(void); bool isLocalPath(const std::string &path) const; std::pair<std::string, std::string> findCachePath(const std::vector<std::string> &paths, double minFreeSpace) const; private: int readFSTypes(void); FSInfo *initFSInfo(void *p); int initFSList(void); int statFSInfo(FSInfo *i) const; FSInfo *findMount(const char *path, struct statfs *sfs, struct stat *s, std::vector<std::string> &) const; std::vector<FSInfo *> fs_; std::vector<std::string> fstypes_; }; } // namespace edm::storage #endif // STORAGE_FACTORY_LOCAL_FILE_SYSTEM_H