![]() |
CernVM-FS
2.12.0
|
#include <swissknife_check.h>
Public Member Functions | |
CommandCheck () | |
~CommandCheck () | |
virtual std::string | GetName () const |
virtual std::string | GetDescription () const |
virtual ParameterList | GetParams () const |
int | Main (const ArgumentList &args) |
![]() | |
Command () | |
virtual | ~Command () |
![]() | |
ServerTool () | |
virtual | ~ServerTool () |
bool | InitDownloadManager (const bool follow_redirects, const std::string &proxy, const unsigned max_pool_handles=1) |
bool | InitSignatureManager (const std::string &pubkey_path, const std::string &certificate_path="", const std::string &private_key_path="") |
manifest::Manifest * | OpenLocalManifest (const std::string path) const |
manifest::Failures | FetchRemoteManifestEnsemble (const std::string &repository_url, const std::string &repository_name, manifest::ManifestEnsemble *ensemble) const |
manifest::Manifest * | FetchRemoteManifest (const std::string &repository_url, const std::string &repository_name, const shash::Any &base_hash=shash::Any()) const |
template<class ObjectFetcherT > | |
manifest::Reflog * | FetchReflog (ObjectFetcherT *object_fetcher, const std::string &repo_name, const shash::Any &reflog_hash) |
manifest::Reflog * | CreateEmptyReflog (const std::string &temp_directory, const std::string &repo_name) |
download::DownloadManager * | download_manager () const |
signature::SignatureManager * | signature_manager () const |
perf::Statistics * | statistics () |
const perf::Statistics * | statistics () const |
Protected Member Functions | |
bool | InspectTree (const std::string &path, const shash::Any &catalog_hash, const uint64_t catalog_size, const bool is_nested_catalog, const catalog::DirectoryEntry *transition_point, catalog::DeltaCounters *computed_counters) |
catalog::Catalog * | FetchCatalog (const std::string &path, const shash::Any &catalog_hash, const uint64_t catalog_size=0) |
bool | FindSubtreeRootCatalog (const std::string &subtree_path, shash::Any *root_hash, uint64_t *root_size) |
std::string | DecompressPiece (const shash::Any catalog_hash) |
std::string | DownloadPiece (const shash::Any catalog_hash) |
std::string | FetchPath (const std::string &path) |
bool | InspectReflog (const shash::Any &reflog_hash, manifest::Manifest *manifest) |
bool | InspectHistory (history::History *history) |
bool | Find (const catalog::Catalog *catalog, const PathString &path, catalog::DeltaCounters *computed_counters, std::set< PathString > *bind_mountpoints) |
bool | Exists (const std::string &file) |
bool | CompareCounters (const catalog::Counters &a, const catalog::Counters &b) |
bool | CompareEntries (const catalog::DirectoryEntry &a, const catalog::DirectoryEntry &b, const bool compare_names, const bool is_transition_point=false) |
Private Attributes | |
std::string | temp_directory_ |
std::string | repo_base_path_ |
bool | check_chunks_ |
bool | no_duplicates_map_ |
bool | is_remote_ |
SmallHashDynamic< shash::Any, char > | duplicates_map_ |
Additional Inherited Members | |
![]() | |
static const char | kGenericParam = '+' |
static const char | kGenericParamSeparator = ',' |
![]() | |
UniquePtr < download::DownloadManager > | download_manager_ |
UniquePtr < signature::SignatureManager > | signature_manager_ |
perf::Statistics | statistics_ |
Definition at line 31 of file swissknife_check.h.
swissknife::CommandCheck::CommandCheck | ( | ) |
|
inline |
Definition at line 34 of file swissknife_check.h.
|
protected |
Definition at line 148 of file swissknife_check.cc.
Referenced by InspectTree().
|
protected |
Definition at line 57 of file swissknife_check.cc.
Referenced by Find(), and InspectTree().
|
protected |
Definition at line 703 of file swissknife_check.cc.
Referenced by FetchCatalog(), and Main().
|
protected |
Definition at line 684 of file swissknife_check.cc.
Referenced by FetchCatalog(), and Main().
|
protected |
Checks for existence of a file either locally or via HTTP head
Definition at line 177 of file swissknife_check.cc.
Referenced by Find(), and Main().
|
protected |
Definition at line 713 of file swissknife_check.cc.
Referenced by FindSubtreeRootCatalog(), and InspectTree().
|
protected |
Copies a file from the repository into a temporary file.
Definition at line 193 of file swissknife_check.cc.
Referenced by InspectReflog().
|
protected |
Recursive catalog walk-through
TODO(vavolkl): This method is large and does a lot of checks that could be split into smaller ones.
Definition at line 346 of file swissknife_check.cc.
Referenced by InspectTree().
|
protected |
Definition at line 751 of file swissknife_check.cc.
Referenced by Main().
|
inlinevirtual |
Implements swissknife::Command.
Definition at line 36 of file swissknife_check.h.
|
inlinevirtual |
Implements swissknife::Command.
Definition at line 35 of file swissknife_check.h.
|
inlinevirtual |
Implements swissknife::Command.
Definition at line 41 of file swissknife_check.h.
|
protected |
Verifies the logical consistency of the tag database.
Definition at line 282 of file swissknife_check.cc.
Referenced by Main().
|
protected |
Verifies reflog checksum and looks for presence of the entry points referenced in the manifest.
Definition at line 223 of file swissknife_check.cc.
Referenced by Main().
|
protected |
Recursion on nested catalog level. No ownership of computed_counters.
Definition at line 794 of file swissknife_check.cc.
Referenced by Main().
|
virtual |
Implements swissknife::Command.
Definition at line 950 of file swissknife_check.cc.
|
private |
Definition at line 97 of file swissknife_check.h.
|
private |
Definition at line 100 of file swissknife_check.h.
Referenced by CommandCheck(), and Find().
|
private |
Definition at line 99 of file swissknife_check.h.
Referenced by Exists(), FetchCatalog(), FetchPath(), and Main().
|
private |
Definition at line 98 of file swissknife_check.h.
|
private |
Definition at line 96 of file swissknife_check.h.
Referenced by DownloadPiece(), Exists(), FetchPath(), and Main().
|
private |
Definition at line 95 of file swissknife_check.h.
Referenced by DecompressPiece(), DownloadPiece(), FetchPath(), and Main().