Skip to content
Snippets Groups Projects
Commit bcdf2f1a authored by Cedric Caffy's avatar Cedric Caffy
Browse files

[cta-taped] Added DisableMaintenanceProcess parameter. It is not taken into account for now

parent ab8e2ea5
No related branches found
No related tags found
No related merge requests found
......@@ -292,6 +292,7 @@ void DriveState::setConfig(const cta::tape::daemon::TapedConfiguration& tapedCon
fillConfig(config->authenticationProtocol);
fillConfig(config->authenticationSSSKeytab);
fillConfig(config->disableRepackManagement);
fillConfig(config->disableMaintenanceProcess);
}
//------------------------------------------------------------------------------
......
......@@ -119,8 +119,10 @@ TapedConfiguration TapedConfiguration::createFromCtaConf(
// The central storage access configuration
ret.backendPath.setFromConfigurationFile(cf, generalConfigPath);
ret.fileCatalogConfigFile.setFromConfigurationFile(cf, generalConfigPath);
//Repack management configuration
// Repack management configuration
ret.disableRepackManagement.setFromConfigurationFile(cf,generalConfigPath);
// Maintenance process configuration
ret.disableMaintenanceProcess.setFromConfigurationFile(cf,generalConfigPath);
// Extract drive list from tpconfig + parsed config file
ret.driveConfigs = Tpconfig::parseFile(ret.tpConfigPath.value());
......@@ -154,6 +156,7 @@ TapedConfiguration TapedConfiguration::createFromCtaConf(
ret.fileCatalogConfigFile.log(log);
ret.disableRepackManagement.log(log);
ret.disableMaintenanceProcess.log(log);
for (auto & i:ret.driveConfigs) {
i.second.log(log);
......
......@@ -145,6 +145,11 @@ struct TapedConfiguration {
"taped","DisableRepackManagement","no","Compile time default"
};
/// Usage of MaintenanceProcess for repack-related operations, Garbage collection and disk reporting
cta::SourcedParameter<std::string> disableMaintenanceProcess {
"taped","DisableMaintenanceProcess","no","Compile time default"
};
private:
/** A private dummy logger which will simplify the implementation of the
* functions (just unconditionally log things). */
......
......@@ -44,4 +44,7 @@
# taped RAOLTOAlgorithmOptions cost_heuristic_name:cta
#
# Disable Repack management
# taped DisableRepackManagement yes
\ No newline at end of file
# taped DisableRepackManagement yes
#
# Disable Maintenance process
# taped DisableMaintenanceProcess yes
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment