diff --git a/objectstore/DriveState.cpp b/objectstore/DriveState.cpp index dc37cf5e7b5f78d43028e194be99d608e01c3b7c..e5224a81a62dcf76ea71d1446ef671b093b2b67a 100644 --- a/objectstore/DriveState.cpp +++ b/objectstore/DriveState.cpp @@ -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); } //------------------------------------------------------------------------------ diff --git a/tapeserver/daemon/TapedConfiguration.cpp b/tapeserver/daemon/TapedConfiguration.cpp index 8e5e9f59ead524fab8e80a303e24184e2ebd6435..ba1af545af24f75f49134e6a92c4345e906fbdb3 100644 --- a/tapeserver/daemon/TapedConfiguration.cpp +++ b/tapeserver/daemon/TapedConfiguration.cpp @@ -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); diff --git a/tapeserver/daemon/TapedConfiguration.hpp b/tapeserver/daemon/TapedConfiguration.hpp index cf7fea019a991690a83ad4060e6c4795070e63b7..9a38fabad0adbf7e137148909abf1730327fceed 100644 --- a/tapeserver/daemon/TapedConfiguration.hpp +++ b/tapeserver/daemon/TapedConfiguration.hpp @@ -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). */ diff --git a/tapeserver/daemon/cta-taped.conf.example b/tapeserver/daemon/cta-taped.conf.example index bd3685b4f030e26fee64bc61c662dce7bd6ebc50..18b3553a0bd9d7492a02769cdfb542861fc85b1d 100644 --- a/tapeserver/daemon/cta-taped.conf.example +++ b/tapeserver/daemon/cta-taped.conf.example @@ -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