CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
swissknife Namespace Reference

Namespaces

 anonymous_namespace{swissknife_pull.cc}
 

Classes

struct  CatalogTraversalData
 
class  CatalogTraversalInfoShim
 
class  CatalogTraversalBase
 
class  CatalogTraversal
 
class  CatalogTraversalParallel
 
class  CommandTag
 
class  Parameter
 
class  Command
 
class  Assistant
 
class  CommandCheck
 
class  FileStatsDatabase
 
class  CommandFileStats
 
class  CommandGc
 
class  CommandGraft
 
class  CommandEditTag
 
class  CommandListTags
 
class  CommandInfoTag
 
class  CommandRollbackTag
 
class  CommandEmptyRecycleBin
 
class  CommandInfo
 
class  CommandVersion
 
class  Ingest
 
class  CommandLease
 
class  CommandLetter
 
class  CommandListReflog
 
class  CommandListCatalogs
 
class  CommandMigrate
 
class  CommandNotify
 
struct  MainWorkerContext
 
class  CommandPull
 
class  RootChainWalker
 
class  CommandReconstructReflog
 
class  CommandScrub
 
class  CommandSign
 
class  CommandCreate
 
class  CommandUpload
 
class  CommandPeek
 
class  CommandRemove
 
class  CommandApplyDirtab
 
class  CommandSync
 
class  CommandZpipe
 

Typedefs

typedef std::vector< ParameterParameterList
 
typedef std::map< char,
SharedPtr< std::string > > 
ArgumentList
 
typedef HttpObjectFetcher ObjectFetcher
 
typedef
CatalogTraversalParallel
< ObjectFetcher
ReadonlyCatalogTraversal
 
typedef SmallhashFilter HashFilter
 
typedef GarbageCollector
< ReadonlyCatalogTraversal,
HashFilter
GC
 
typedef GarbageCollectorAux
< ReadonlyCatalogTraversal,
HashFilter
GCAux
 
typedef GC::Configuration GcConfig
 

Enumerations

enum  LeaseError {
  kLeaseSuccess, kLeaseBusy, kLeaseFailure, kLeaseParamError,
  kLeaseKeyParseError, kLeaseCurlInitError, kLeaseFileOpenError, kLeaseCurlReqError
}
 

Functions

void Usage ()
 
bool ObtainDacReadSearchCapability ()
 
static bool IsRemote (const string &repository)
 
static void Error (const std::string &message)
 
static void Error (const std::string &message, const CommandMigrate::PendingCatalog *catalog)
 
static void Error (const std::string &message, const catalog::SqlCatalog &statement, const CommandMigrate::PendingCatalog *catalog)
 
static std::string MakePath (const shash::Any &hash)
 
static bool Peek (const string &remote_path)
 
static bool Peek (const shash::Any &remote_hash)
 
static void ReportDownloadError (const download::JobInfo &download_job)
 
static void Store (const string &local_path, const string &remote_path, const bool compressed_src)
 
static void Store (const string &local_path, const shash::Any &remote_hash, const bool compressed_src=true)
 
static void StoreBuffer (const unsigned char *buffer, const unsigned size, const std::string dest_path, const bool compress)
 
static void StoreBuffer (const unsigned char *buffer, const unsigned size, const shash::Any &dest_hash, const bool compress)
 
static void WaitForStorage ()
 
static void * MainWorker (void *data)
 

Variables

download::DownloadManagerg_download_manager
 
signature::SignatureManagerg_signature_manager
 
perf::Statisticsg_statistics
 
const size_t kHashSubtreeLength = 2
 
const std::string kTxnDirectoryName = "txn"
 

Detailed Description

This file is part of the CernVM File System.

This file is part of the CernVM File System.

This command processes a repository's catalog structure to detect and remove outdated and/or unneeded data objects.

This file is part of the CernVM File System.

It assists in creating graft files for publishing in CVMFS.

Typedef Documentation

typedef std::map<char, SharedPtr<std::string> > swissknife::ArgumentList

Definition at line 72 of file swissknife.h.

Definition at line 30 of file swissknife_gc.cc.

Definition at line 27 of file swissknife_gc.cc.

Definition at line 25 of file swissknife_gc.cc.

typedef std::vector<Parameter> swissknife::ParameterList

Definition at line 71 of file swissknife.h.

Enumeration Type Documentation

Enumerator
kLeaseSuccess 
kLeaseBusy 
kLeaseFailure 
kLeaseParamError 
kLeaseKeyParseError 
kLeaseCurlInitError 
kLeaseFileOpenError 
kLeaseCurlReqError 

Definition at line 31 of file swissknife_lease.cc.

Function Documentation

static void swissknife::Error ( const std::string &  message)
static

Definition at line 68 of file swissknife_migrate.cc.

Referenced by swissknife::CommandMigrate::MigrationWorker_20x::AnalyzeFileLinkcounts(), swissknife::CommandMigrate::ChownMigrationWorker::ApplyPersonaMappings(), swissknife::CommandMigrate::MigrationWorker_20x::AttachOldCatalogDatabase(), swissknife::CommandMigrate::MigrationWorker_20x::CheckDatabaseSchemaCompatibility(), swissknife::CommandMigrate::MigrationWorker_217::CheckDatabaseSchemaCompatibility(), swissknife::CommandMigrate::StatsMigrationWorker::CheckDatabaseSchemaCompatibility(), swissknife::CommandMigrate::AbstractMigrationWorker< DerivedT >::CollectAndAggregateStatistics(), swissknife::CommandMigrate::MigrationWorker_20x::CreateNewEmptyCatalog(), swissknife::CommandMigrate::MigrationWorker_20x::DetachOldCatalogDatabase(), swissknife::CommandMigrate::DoMigrationAndCommit(), Error(), swissknife::CommandMigrate::MigrationWorker_20x::FindRootEntryInformation(), swissknife::CommandMigrate::MigrationWorker_20x::FixNestedCatalogTransitionPoints(), swissknife::CommandMigrate::MigrationWorker_20x::GenerateCatalogStatistics(), swissknife::CommandMigrate::GenerateNestedCatalogMarkerChunk(), swissknife::CommandMigrate::MigrationWorker_217::GenerateNewStatisticsCounters(), swissknife::CommandMigrate::Main(), swissknife::CommandMigrate::MigrationWorker_20x::MigrateFileMetadata(), swissknife::CommandMigrate::MigrationWorker_20x::MigrateNestedCatalogMountPoints(), swissknife::CommandMigrate::MigrationCallback(), swissknife::CommandMigrate::ReadPersona(), swissknife::CommandMigrate::ReadPersonaMaps(), swissknife::CommandMigrate::MigrationWorker_20x::RemoveDanglingNestedMountpoints(), swissknife::CommandMigrate::StatsMigrationWorker::RepairStatisticsCounters(), swissknife::CommandMigrate::MigrationWorker_217::UpdateCatalogSchema(), swissknife::CommandMigrate::AbstractMigrationWorker< DerivedT >::UpdateNestedCatalogReferences(), swissknife::CommandMigrate::UpdateUndoTags(), and swissknife::CommandMigrate::UploadCallback().

Here is the caller graph for this function:

static void swissknife::Error ( const std::string &  message,
const CommandMigrate::PendingCatalog *  catalog 
)
static

Definition at line 73 of file swissknife_migrate.cc.

Here is the call graph for this function:

static void swissknife::Error ( const std::string &  message,
const catalog::SqlCatalog statement,
const CommandMigrate::PendingCatalog *  catalog 
)
static

Definition at line 81 of file swissknife_migrate.cc.

Here is the call graph for this function:

static bool swissknife::IsRemote ( const string &  repository)
static

Checks if the given path looks like a remote path

Definition at line 29 of file swissknife_info.cc.

Referenced by swissknife::CommandInfo::Exists(), and swissknife::CommandInfo::Main().

Here is the caller graph for this function:

static void* swissknife::MainWorker ( void *  data)
static

Definition at line 253 of file swissknife_pull.cc.

Here is the call graph for this function:

static std::string swissknife::MakePath ( const shash::Any hash)
static

Definition at line 123 of file swissknife_pull.cc.

Referenced by Peek(), swissknife::CommandPull::Pull(), Store(), and StoreBuffer().

Here is the call graph for this function:

Here is the caller graph for this function:

bool swissknife::ObtainDacReadSearchCapability ( )

Definition at line 17 of file swissknife_capabilities.cc.

Referenced by swissknife::Ingest::Main(), and swissknife::CommandSync::Main().

Here is the call graph for this function:

Here is the caller graph for this function:

static bool swissknife::Peek ( const string &  remote_path)
static

Definition at line 130 of file swissknife_pull.cc.

Referenced by swissknife::CommandPull::Main(), MainWorker(), Peek(), and swissknife::CommandPull::Pull().

Here is the call graph for this function:

Here is the caller graph for this function:

static bool swissknife::Peek ( const shash::Any remote_hash)
static

Definition at line 135 of file swissknife_pull.cc.

Here is the call graph for this function:

static void swissknife::ReportDownloadError ( const download::JobInfo download_job)
static

Definition at line 139 of file swissknife_pull.cc.

Referenced by swissknife::CommandPull::Main(), MainWorker(), and swissknife::CommandPull::Pull().

Here is the call graph for this function:

Here is the caller graph for this function:

static void swissknife::Store ( const string &  local_path,
const string &  remote_path,
const bool  compressed_src 
)
static

Definition at line 177 of file swissknife_pull.cc.

Referenced by swissknife::CommandPull::Main(), MainWorker(), swissknife::CommandPull::Pull(), Store(), and StoreBuffer().

Here is the call graph for this function:

Here is the caller graph for this function:

static void swissknife::Store ( const string &  local_path,
const shash::Any remote_hash,
const bool  compressed_src = true 
)
static

Definition at line 212 of file swissknife_pull.cc.

Here is the call graph for this function:

static void swissknife::StoreBuffer ( const unsigned char *  buffer,
const unsigned  size,
const std::string  dest_path,
const bool  compress 
)
static

Definition at line 221 of file swissknife_pull.cc.

Referenced by swissknife::CommandPull::Main(), and StoreBuffer().

Here is the call graph for this function:

Here is the caller graph for this function:

static void swissknife::StoreBuffer ( const unsigned char *  buffer,
const unsigned  size,
const shash::Any dest_hash,
const bool  compress 
)
static

Definition at line 238 of file swissknife_pull.cc.

Here is the call graph for this function:

void swissknife::Usage ( )

Definition at line 35 of file preload.cc.

Referenced by main().

Here is the caller graph for this function:

static void swissknife::WaitForStorage ( )
static

Definition at line 244 of file swissknife_pull.cc.

Referenced by swissknife::CommandPull::Main(), and swissknife::CommandPull::Pull().

Here is the caller graph for this function:

Variable Documentation

download::DownloadManager* swissknife::g_download_manager

Definition at line 32 of file preload.cc.

Referenced by main().

signature::SignatureManager* swissknife::g_signature_manager

Definition at line 33 of file preload.cc.

Referenced by main().

perf::Statistics* swissknife::g_statistics

Definition at line 34 of file preload.cc.

Referenced by main().

const size_t swissknife::kHashSubtreeLength = 2

Definition at line 20 of file swissknife_scrub.cc.

Referenced by swissknife::CommandScrub::DirCallback().

const std::string swissknife::kTxnDirectoryName = "txn"