CernVM-FS
2.12.0
|
#include <settings.h>
Public Member Functions | |
SettingsTransaction (const std::string &fqrn) | |
void | SetLayoutRevision (const unsigned revision) |
void | SetInEnterSession (const bool value) |
void | SetBaseHash (const shash::Any &hash) |
void | SetUnionFsType (const std::string &union_fs) |
void | SetHashAlgorithm (const std::string &algorithm) |
void | SetCompressionAlgorithm (const std::string &algorithm) |
void | SetEnforceLimits (bool value) |
void | SetEnableMtimeNs (bool value) |
void | SetLimitNestedCatalogKentries (unsigned value) |
void | SetLimitRootCatalogKentries (unsigned value) |
void | SetLimitFileSizeMb (unsigned value) |
void | SetUseCatalogAutobalance (bool value) |
void | SetAutobalanceMaxWeight (unsigned value) |
void | SetAutobalanceMinWeight (unsigned value) |
void | SetPrintChangeset (bool value) |
void | SetDryRun (bool value) |
void | SetTimeout (unsigned seconds) |
void | SetLeasePath (const std::string &path) |
void | SetTemplate (const std::string &from, const std::string &to) |
void | DetectUnionFsType () |
int | GetTimeoutS () const |
unsigned | layout_revision () const |
bool | in_enter_session () const |
shash::Any | base_hash () const |
shash::Algorithms | hash_algorithm () const |
zlib::Algorithms | compression_algorithm () const |
uint32_t | ttl_second () const |
bool | is_garbage_collectable () const |
bool | is_volatile () const |
bool | enforce_limits () const |
bool | enable_mtime_ns () const |
unsigned | limit_nested_catalog_kentries () const |
unsigned | limit_root_catalog_kentries () const |
unsigned | limit_file_size_mb () const |
bool | use_catalog_autobalance () const |
unsigned | autobalance_max_weight () const |
unsigned | autobalance_min_weight () const |
bool | print_changeset () const |
bool | dry_run () const |
std::string | voms_authz () const |
UnionFsType | union_fs () const |
std::string | lease_path () const |
std::string | template_from () const |
std::string | template_to () const |
const SettingsSpoolArea & | spool_area () const |
SettingsSpoolArea * | GetSpoolArea () |
bool | HasTemplate () const |
Private Member Functions | |
bool | ValidateUnionFs () |
Private Attributes | |
Setting< unsigned > | layout_revision_ |
Setting< bool > | in_enter_session_ |
Setting< shash::Any > | base_hash_ |
Setting< shash::Algorithms > | hash_algorithm_ |
Setting< zlib::Algorithms > | compression_algorithm_ |
Setting< uint32_t > | ttl_second_ |
Setting< bool > | is_garbage_collectable_ |
Setting< bool > | is_volatile_ |
Setting< bool > | enforce_limits_ |
Setting< bool > | enable_mtime_ns_ |
Setting< unsigned > | limit_nested_catalog_kentries_ |
Setting< unsigned > | limit_root_catalog_kentries_ |
Setting< unsigned > | limit_file_size_mb_ |
Setting< bool > | use_catalog_autobalance_ |
Setting< unsigned > | autobalance_max_weight_ |
Setting< unsigned > | autobalance_min_weight_ |
Setting< bool > | print_changeset_ |
Setting< bool > | dry_run_ |
Setting< std::string > | voms_authz_ |
Setting< UnionFsType > | union_fs_ |
Setting< unsigned > | timeout_s_ |
Setting< std::string > | lease_path_ |
Setting< std::string > | template_from_ |
Setting< std::string > | template_to_ |
SettingsSpoolArea | spool_area_ |
Definition at line 133 of file settings.h.
|
inlineexplicit |
Definition at line 135 of file settings.h.
|
inline |
Definition at line 209 of file settings.h.
|
inline |
Definition at line 210 of file settings.h.
|
inline |
Definition at line 191 of file settings.h.
|
inline |
Definition at line 193 of file settings.h.
void publish::SettingsTransaction::DetectUnionFsType | ( | ) |
Definition at line 138 of file settings.cc.
Referenced by publish::CmdMkfs::Main().
|
inline |
Definition at line 212 of file settings.h.
|
inline |
Definition at line 200 of file settings.h.
|
inline |
Definition at line 199 of file settings.h.
|
inline |
Definition at line 220 of file settings.h.
Referenced by publish::SettingsBuilder::ApplyOptionsFromServerPath(), and publish::CmdMkfs::Main().
int publish::SettingsTransaction::GetTimeoutS | ( | ) | const |
0 - wait infinitely <0: unset, fail immediately
Definition at line 162 of file settings.cc.
|
inline |
Definition at line 192 of file settings.h.
|
inline |
|
inline |
Definition at line 190 of file settings.h.
Referenced by publish::Publisher().
|
inline |
Definition at line 197 of file settings.h.
|
inline |
Definition at line 198 of file settings.h.
|
inline |
Definition at line 189 of file settings.h.
Referenced by publish::Publisher().
|
inline |
Definition at line 215 of file settings.h.
|
inline |
Definition at line 207 of file settings.h.
|
inline |
Definition at line 201 of file settings.h.
|
inline |
Definition at line 204 of file settings.h.
|
inline |
Definition at line 211 of file settings.h.
void publish::SettingsTransaction::SetAutobalanceMaxWeight | ( | unsigned | value | ) |
Definition at line 110 of file settings.cc.
Referenced by publish::SettingsBuilder::ApplyOptionsFromServerPath().
void publish::SettingsTransaction::SetAutobalanceMinWeight | ( | unsigned | value | ) |
Definition at line 114 of file settings.cc.
Referenced by publish::SettingsBuilder::ApplyOptionsFromServerPath().
void publish::SettingsTransaction::SetBaseHash | ( | const shash::Any & | hash | ) |
Definition at line 73 of file settings.cc.
void publish::SettingsTransaction::SetCompressionAlgorithm | ( | const std::string & | algorithm | ) |
Definition at line 81 of file settings.cc.
Referenced by publish::SettingsBuilder::ApplyOptionsFromServerPath().
void publish::SettingsTransaction::SetDryRun | ( | bool | value | ) |
Definition at line 122 of file settings.cc.
void publish::SettingsTransaction::SetEnableMtimeNs | ( | bool | value | ) |
Definition at line 90 of file settings.cc.
Referenced by publish::SettingsBuilder::ApplyOptionsFromServerPath().
void publish::SettingsTransaction::SetEnforceLimits | ( | bool | value | ) |
Definition at line 86 of file settings.cc.
Referenced by publish::SettingsBuilder::ApplyOptionsFromServerPath().
void publish::SettingsTransaction::SetHashAlgorithm | ( | const std::string & | algorithm | ) |
Definition at line 77 of file settings.cc.
Referenced by publish::SettingsBuilder::ApplyOptionsFromServerPath().
void publish::SettingsTransaction::SetInEnterSession | ( | const bool | value | ) |
Definition at line 69 of file settings.cc.
void publish::SettingsTransaction::SetLayoutRevision | ( | const unsigned | revision | ) |
Definition at line 65 of file settings.cc.
Referenced by publish::SettingsBuilder::ApplyOptionsFromServerPath().
void publish::SettingsTransaction::SetLeasePath | ( | const std::string & | path | ) |
Definition at line 168 of file settings.cc.
void publish::SettingsTransaction::SetLimitFileSizeMb | ( | unsigned | value | ) |
Definition at line 102 of file settings.cc.
Referenced by publish::SettingsBuilder::ApplyOptionsFromServerPath().
void publish::SettingsTransaction::SetLimitNestedCatalogKentries | ( | unsigned | value | ) |
Definition at line 94 of file settings.cc.
Referenced by publish::SettingsBuilder::ApplyOptionsFromServerPath().
void publish::SettingsTransaction::SetLimitRootCatalogKentries | ( | unsigned | value | ) |
Definition at line 98 of file settings.cc.
Referenced by publish::SettingsBuilder::ApplyOptionsFromServerPath().
void publish::SettingsTransaction::SetPrintChangeset | ( | bool | value | ) |
Definition at line 118 of file settings.cc.
void publish::SettingsTransaction::SetTemplate | ( | const std::string & | from, |
const std::string & | to | ||
) |
Definition at line 172 of file settings.cc.
void publish::SettingsTransaction::SetTimeout | ( | unsigned | seconds | ) |
Definition at line 158 of file settings.cc.
void publish::SettingsTransaction::SetUnionFsType | ( | const std::string & | union_fs | ) |
Definition at line 126 of file settings.cc.
Referenced by publish::SettingsBuilder::ApplyOptionsFromServerPath(), and publish::CmdMkfs::Main().
void publish::SettingsTransaction::SetUseCatalogAutobalance | ( | bool | value | ) |
Definition at line 106 of file settings.cc.
Referenced by publish::SettingsBuilder::ApplyOptionsFromServerPath().
|
inline |
Definition at line 219 of file settings.h.
Referenced by publish::CmdMkfs::Main().
|
inline |
Definition at line 216 of file settings.h.
|
inline |
Definition at line 217 of file settings.h.
Referenced by HasTemplate().
|
inline |
Definition at line 196 of file settings.h.
|
inline |
Definition at line 214 of file settings.h.
|
inline |
Definition at line 208 of file settings.h.
|
private |
Definition at line 153 of file settings.cc.
|
inline |
Definition at line 213 of file settings.h.
|
private |
Definition at line 255 of file settings.h.
Referenced by autobalance_max_weight(), and SetAutobalanceMaxWeight().
|
private |
Definition at line 256 of file settings.h.
Referenced by autobalance_min_weight(), and SetAutobalanceMinWeight().
|
private |
The root catalog hash based on which the transaction takes place. Usually the current root catalog from the manifest, which should be equal to the root hash of the mounted read-only volume. In some cases, this can be different though, e.g. for checked out branches or after silent transactions such as template transactions.
Definition at line 243 of file settings.h.
Referenced by base_hash(), and SetBaseHash().
|
private |
Definition at line 245 of file settings.h.
Referenced by compression_algorithm(), and SetCompressionAlgorithm().
|
private |
Definition at line 258 of file settings.h.
Referenced by dry_run(), and SetDryRun().
|
private |
Definition at line 250 of file settings.h.
Referenced by enable_mtime_ns(), and SetEnableMtimeNs().
|
private |
Definition at line 249 of file settings.h.
Referenced by enforce_limits(), and SetEnforceLimits().
|
private |
Definition at line 244 of file settings.h.
Referenced by hash_algorithm(), and SetHashAlgorithm().
|
private |
Set to true if the settings have been created from the environment of the ephemeral writable shell (cvmfs_server enter command).
Definition at line 235 of file settings.h.
Referenced by in_enter_session(), and SetInEnterSession().
|
private |
Definition at line 247 of file settings.h.
Referenced by is_garbage_collectable().
|
private |
Definition at line 248 of file settings.h.
Referenced by is_volatile().
|
private |
See CVMFS_CREATOR_VERSION
Definition at line 230 of file settings.h.
Referenced by layout_revision(), and SetLayoutRevision().
|
private |
Definition at line 265 of file settings.h.
Referenced by lease_path(), and SetLeasePath().
|
private |
Definition at line 253 of file settings.h.
Referenced by limit_file_size_mb(), and SetLimitFileSizeMb().
|
private |
Definition at line 251 of file settings.h.
Referenced by limit_nested_catalog_kentries(), and SetLimitNestedCatalogKentries().
|
private |
Definition at line 252 of file settings.h.
Referenced by limit_root_catalog_kentries(), and SetLimitRootCatalogKentries().
|
private |
Definition at line 257 of file settings.h.
Referenced by print_changeset(), and SetPrintChangeset().
|
private |
Definition at line 273 of file settings.h.
Referenced by GetSpoolArea(), and spool_area().
|
private |
Used for template transactions where a directory tree gets cloned (from –> to) as part of opening the transaction
Definition at line 270 of file settings.h.
Referenced by SetTemplate(), and template_from().
|
private |
Definition at line 271 of file settings.h.
Referenced by SetTemplate(), and template_to().
|
private |
How long to retry taking a lease before giving up
Definition at line 264 of file settings.h.
Referenced by GetTimeoutS(), and SetTimeout().
|
private |
Definition at line 246 of file settings.h.
Referenced by ttl_second().
|
private |
Definition at line 260 of file settings.h.
Referenced by DetectUnionFsType(), SetUnionFsType(), and union_fs().
|
private |
Definition at line 254 of file settings.h.
Referenced by SetUseCatalogAutobalance(), and use_catalog_autobalance().
|
private |
Definition at line 259 of file settings.h.
Referenced by voms_authz().