Searched refs:confFile (Results 1 – 8 of 8) sorted by relevance
/openbmc/phosphor-fan-presence/ |
H A D | json_config.hpp | 251 fs::path confFile = fs::path{confOverridePath} / appName / fileName; in getConfFile() 252 if (fs::exists(confFile)) in getConfFile() 254 return confFile; in getConfFile() 258 confFile = fs::path{confBasePath} / appName / fileName; in getConfFile() 259 if (fs::exists(confFile)) in getConfFile() 261 return confFile; in getConfFile() 268 [&confFile, &appName, &fileName](const auto& value) { in getConfFile() 269 confFile = fs::path{confBasePath} / appName / value / fileName; in getConfFile() 271 return fs::exists(confFile); in getConfFile() 275 confFile.clear(); in getConfFile() [all …]
|
/openbmc/phosphor-fan-presence/control/json/utils/ |
H A D | pcie_card_metadata.cpp | 43 auto confFile = fs::path{confOverridePath} / defaultPath; in loadCards() 46 if (!fs::exists(confFile)) in loadCards() 54 confFile = fs::path{confOverridePath} / basePath; in loadCards() 56 if (!fs::exists(confFile)) in loadCards() 58 confFile = fs::path{confBasePath} / basePath; in loadCards() 61 if (fs::exists(confFile)) in loadCards() 69 if (!fs::exists(confFile)) in loadCards() 71 confFile = fs::path{confBasePath} / defaultPath; in loadCards() 74 if (fs::exists(confFile)) in loadCards() 78 std::format("Loading configuration from {}", confFile.string())); in loadCards() [all …]
|
/openbmc/phosphor-led-manager/manager/ |
H A D | json-config.hpp | 47 if (!confFile.empty()) in JsonConfig() 60 return confFile; in getConfFile() 78 confFile = configFilePath; in filePathExists() 145 confFile = fs::path{confOverridePath} / confFileName; in getFilePath() 146 if (fs::exists(confFile)) in getFilePath() 152 confFile = fs::path{confBasePath} / confFileName; in getFilePath() 153 if (fs::exists(confFile)) in getFilePath() 157 confFile.clear(); in getFilePath() 182 confFile.clear(); in getFilePath() 192 confFile.clear(); in getFilePath() [all …]
|
/openbmc/phosphor-snmp/ |
H A D | snmp_conf_manager.cpp | 130 for (auto& confFile : in restoreClients() local 133 if (!fs::is_regular_file(confFile)) in restoreClients() 138 auto managerID = confFile.path().filename().string(); in restoreClients() 145 if (deserialize(confFile.path(), *manager)) in restoreClients()
|
/openbmc/phosphor-fan-presence/control/json/ |
H A D | manager.hpp | 206 auto confFile = fan::JsonConfig::getConfFile( in getConfig() local 209 if (!confFile.empty()) in getConfig() 213 confFile.string())); in getConfig() 214 for (const auto& entry : fan::JsonConfig::load(confFile)) in getConfig()
|
H A D | manager.cpp | 803 auto confFile = in setProfiles() local 807 if (!confFile.empty()) in setProfiles() 809 for (const auto& entry : fan::JsonConfig::load(confFile)) in setProfiles()
|
/openbmc/phosphor-user-manager/ |
H A D | user_mgr.cpp | 640 int UserMgr::getPamModuleConfValue(const std::string& confFile, in getPamModuleConfValue() argument 644 std::ifstream fileToRead(confFile, std::ios::in); in getPamModuleConfValue() 648 "FILENAME", confFile); in getPamModuleConfValue() 681 int UserMgr::setPamModuleConfValue(const std::string& confFile, in setPamModuleConfValue() argument 685 std::string tmpConfFile = confFile + "_tmp"; in setPamModuleConfValue() 686 std::ifstream fileToRead(confFile, std::ios::in); in setPamModuleConfValue() 691 "FILENAME", confFile); in setPamModuleConfValue() 733 if (std::rename(tmpConfFile.c_str(), confFile.c_str()) == 0) in setPamModuleConfValue()
|
H A D | user_mgr.hpp | 305 int getPamModuleConfValue(const std::string& confFile, 333 int setPamModuleConfValue(const std::string& confFile,
|