15 #ifndef __STDC_FORMAT_MACROS
16 #define __STDC_FORMAT_MACROS
26 #include <sys/socket.h>
28 #include <sys/types.h>
72 for (
unsigned i = 0; i < list.size(); ++i) {
73 list_str += list[i] +
"\n";
75 Answer(con_fd, list_str);
80 const string &socket_path,
85 talk_manager(
new TalkManager(socket_path, mount_point, remounter));
94 socket_path.c_str(), talk_manager->
socket_fd_);
102 vector<string> metalink_chain;
103 unsigned active_metalink;
106 if (metalink_chain.size() == 0)
107 return "No metalinks defined\n";
110 for (
unsigned i = 0; i < metalink_chain.size(); ++i) {
111 metalink_str +=
" [" +
StringifyInt(i) +
"] " + metalink_chain[i] +
"\n";
113 metalink_str +=
"Active metalink " +
StringifyInt(active_metalink) +
": " +
114 metalink_chain[active_metalink] +
"\n";
119 vector<string> host_chain;
121 unsigned active_host;
123 download_mgr->
GetHostInfo(&host_chain, &rtt, &active_host);
124 if (host_chain.size() == 0)
125 return "No hosts defined\n";
128 for (
unsigned i = 0; i < host_chain.size(); ++i) {
129 host_str +=
" [" +
StringifyInt(i) +
"] " + host_chain[i] +
" (";
131 host_str +=
"unprobed";
133 host_str +=
"host down";
135 host_str +=
"geographically ordered";
140 host_str +=
"Active host " +
StringifyInt(active_host) +
": " +
141 host_chain[active_host] +
"\n";
146 vector< vector<download::DownloadManager::ProxyInfo> > proxy_chain;
147 unsigned active_group;
148 unsigned fallback_group;
150 download_mgr->
GetProxyInfo(&proxy_chain, &active_group, &fallback_group);
152 if (proxy_chain.size()) {
153 proxy_str +=
"Load-balance groups:\n";
154 for (
unsigned i = 0; i < proxy_chain.size(); ++i) {
156 for (
unsigned j = 0; j < proxy_chain[i].size(); ++j) {
157 urls.push_back(proxy_chain[i][j].Print());
162 proxy_str +=
"Active proxy: [" +
StringifyInt(active_group) +
"] " +
163 proxy_chain[active_group][0].url +
"\n";
164 if (fallback_group < proxy_chain.size())
165 proxy_str +=
"First fallback group: [" +
168 proxy_str =
"No proxies defined\n";
185 struct sockaddr_un remote;
186 socklen_t socket_size =
sizeof(remote);
190 shutdown(con_fd, SHUT_RDWR);
196 (
struct sockaddr *)&remote,
204 char buf[kMaxCommandSize];
206 if ((bytes_read = recv(con_fd, buf,
sizeof(buf), 0)) <= 0)
209 if (buf[bytes_read-1] ==
'\0')
211 const string line = string(buf, bytes_read);
213 line.c_str(), line.length());
215 if (line ==
"tracebuffer flush") {
217 talk_mgr->
Answer(con_fd,
"OK\n");
218 }
else if (line ==
"cache size") {
221 talk_mgr->
Answer(con_fd,
"Cache cannot report its size\n");
223 uint64_t size_unpinned = quota_mgr->
GetSize();
225 const string size_str =
"Current cache size is " +
230 talk_mgr->
Answer(con_fd, size_str);
232 }
else if (line ==
"cache instance") {
234 }
else if (line ==
"cache list") {
237 talk_mgr->
Answer(con_fd,
"Cache cannot list its entries\n");
239 vector<string> ls = quota_mgr->
List();
242 }
else if (line ==
"cache list pinned") {
245 talk_mgr->
Answer(con_fd,
"Cache cannot list its entries\n");
247 vector<string> ls_pinned = quota_mgr->
ListPinned();
250 }
else if (line ==
"cache list catalogs") {
253 talk_mgr->
Answer(con_fd,
"Cache cannot list its entries\n");
258 }
else if (line.substr(0, 12) ==
"cleanup rate") {
261 talk_mgr->
Answer(con_fd,
"Unsupported by this cache\n");
263 if (line.length() < 14) {
264 talk_mgr->
Answer(con_fd,
"Usage: cleanup rate <period in mn>\n");
266 const uint64_t period_s =
String2Uint64(line.substr(13)) * 60;
271 }
else if (line.substr(0, 15) ==
"cache limit set") {
272 if (line.length() < 16) {
273 talk_mgr->
Answer(con_fd,
"Usage: cache limit set <MB>\n");
278 talk_mgr->
Answer(con_fd,
"New limit too low (minimum 1000)\n");
280 if(quota_mgr->
SetLimit(size * 1024*1024)) {
282 talk_mgr->
Answer(con_fd,
"OK\n");
284 talk_mgr->
Answer(con_fd,
"Limit not reset\n");
288 }
else if (line ==
"cache limit get") {
289 std::string limit_from_options;
291 talk_mgr->
Answer(con_fd, limit_from_options +
"\n");
292 }
else if (line.substr(0, 7) ==
"cleanup") {
295 talk_mgr->
Answer(con_fd,
"Cache cannot trigger eviction\n");
297 if (line.length() < 9) {
298 talk_mgr->
Answer(con_fd,
"Usage: cleanup <MB>\n");
301 if (quota_mgr->
Cleanup(size)) {
302 talk_mgr->
Answer(con_fd,
"OK\n");
304 talk_mgr->
Answer(con_fd,
"Not fully cleaned "
305 "(there might be pinned chunks)\n");
309 }
else if (line.substr(0, 5) ==
"evict") {
311 if (line.length() < 7) {
312 talk_mgr->
Answer(con_fd,
"Usage: evict <path>\n");
314 const string path = line.substr(6);
317 talk_mgr->
Answer(con_fd,
"OK\n");
319 talk_mgr->
Answer(con_fd,
"No such regular file\n");
321 }
else if (line.substr(0, 3) ==
"pin") {
323 if (line.length() < 5) {
324 talk_mgr->
Answer(con_fd,
"Usage: pin <path>\n");
326 const string path = line.substr(4);
329 talk_mgr->
Answer(con_fd,
"OK\n");
331 talk_mgr->
Answer(con_fd,
"No such regular file or pinning failed\n");
333 }
else if (line ==
"mountpoint") {
335 }
else if (line ==
"device id") {
339 talk_mgr->
Answer(con_fd,
"0:0\n");
340 }
else if (line.substr(0, 13) ==
"send mount fd") {
342 if (line.length() < 15) {
343 talk_mgr->
Answer(con_fd,
"EINVAL\n");
345 std::string socket_path = line.substr(14);
347 talk_mgr->
Answer(con_fd, retval ?
"OK\n" :
"Failed\n");
349 "Attempt to send fuse connection info to new mount (via %s)%s",
350 socket_path.c_str(), retval ?
"" :
" -- failed!");
352 }
else if (line.substr(0, 7) ==
"remount") {
354 if (line ==
"remount sync")
357 status = remounter->
Check();
360 talk_mgr->
Answer(con_fd,
"Failed\n");
363 talk_mgr->
Answer(con_fd,
"Failed (no space)\n");
366 talk_mgr->
Answer(con_fd,
"Catalog up to date\n");
369 talk_mgr->
Answer(con_fd,
"New revision applied\n");
372 talk_mgr->
Answer(con_fd,
"In maintenance mode\n");
375 talk_mgr->
Answer(con_fd,
"internal error\n");
377 }
else if (line.substr(0, 6) ==
"chroot") {
378 if (line.length() < 8) {
379 talk_mgr->
Answer(con_fd,
"Usage: chroot <hash>\n");
381 std::string root_hash =
Trim(line.substr(7),
true );
386 talk_mgr->
Answer(con_fd,
"OK\n");
389 talk_mgr->
Answer(con_fd,
"Failed\n");
393 }
else if (line ==
"detach nested catalogs") {
395 talk_mgr->
Answer(con_fd,
"OK\n");
396 }
else if (line ==
"revision") {
398 talk_mgr->
Answer(con_fd, revision +
"\n");
399 }
else if (line ==
"max ttl info") {
400 const unsigned max_ttl = mount_point->
GetMaxTtlMn();
402 talk_mgr->
Answer(con_fd,
"unset\n");
404 const string max_ttl_str =
StringifyInt(max_ttl) +
" minutes\n";
405 talk_mgr->
Answer(con_fd, max_ttl_str);
407 }
else if (line.substr(0, 11) ==
"max ttl set") {
408 if (line.length() < 13) {
409 talk_mgr->
Answer(con_fd,
"Usage: max ttl set <minutes>\n");
413 talk_mgr->
Answer(con_fd,
"OK\n");
415 }
else if (line.substr(0, 14) ==
"nameserver get") {
417 const string reply = !dns_server.empty() ?
418 std::string(
"DNS server address: ") + dns_server +
"\n":
419 std::string(
"DNS server not set.\n");
420 talk_mgr->
Answer(con_fd, reply);
421 }
else if (line.substr(0, 14) ==
"nameserver set") {
422 if (line.length() < 16) {
423 talk_mgr->
Answer(con_fd,
"Usage: nameserver set <host>\n");
425 const string host = line.substr(15);
427 talk_mgr->
Answer(con_fd,
"OK\n");
429 }
else if (line ==
"external metalink info") {
430 const string external_metalink_info =
432 talk_mgr->
Answer(con_fd, external_metalink_info);
433 }
else if (line ==
"metalink info") {
434 const string metalink_info =
436 talk_mgr->
Answer(con_fd, metalink_info);
437 }
else if (line ==
"external host info") {
438 const string external_host_info =
440 talk_mgr->
Answer(con_fd, external_host_info);
441 }
else if (line ==
"host info") {
442 const string host_info =
444 talk_mgr->
Answer(con_fd, host_info);
445 }
else if (line ==
"host probe") {
447 talk_mgr->
Answer(con_fd,
"OK\n");
448 }
else if (line ==
"host probe geo") {
451 talk_mgr->
Answer(con_fd,
"OK\n");
453 talk_mgr->
Answer(con_fd,
"Failed\n");
454 }
else if (line ==
"external metalink switch") {
456 talk_mgr->
Answer(con_fd,
"OK\n");
457 }
else if (line ==
"metalink switch") {
459 talk_mgr->
Answer(con_fd,
"OK\n");
460 }
else if (line ==
"external host switch") {
462 talk_mgr->
Answer(con_fd,
"OK\n");
463 }
else if (line ==
"host switch") {
465 talk_mgr->
Answer(con_fd,
"OK\n");
466 }
else if (line.substr(0, 21) ==
"external metalink set") {
467 if (line.length() < 23) {
468 talk_mgr->
Answer(con_fd,
"Usage: external metalink set <URL>\n");
470 const std::string host = line.substr(22);
472 talk_mgr->
Answer(con_fd,
"OK\n");
474 }
else if (line.substr(0, 12) ==
"metalink set") {
475 if (line.length() < 14) {
476 talk_mgr->
Answer(con_fd,
"Usage: metalink set <URL>\n");
478 const std::string host = line.substr(13);
480 talk_mgr->
Answer(con_fd,
"OK\n");
482 }
else if (line.substr(0, 17) ==
"external host set") {
483 if (line.length() < 19) {
484 talk_mgr->
Answer(con_fd,
"Usage: external host set <URL>\n");
486 const std::string host = line.substr(18);
488 talk_mgr->
Answer(con_fd,
"OK\n");
490 }
else if (line.substr(0, 8) ==
"host set") {
491 if (line.length() < 10) {
492 talk_mgr->
Answer(con_fd,
"Usage: host set <host list>\n");
494 const string hosts = line.substr(9);
496 talk_mgr->
Answer(con_fd,
"OK\n");
498 }
else if (line ==
"external proxy info") {
499 string external_proxy_info =
501 talk_mgr->
Answer(con_fd, external_proxy_info);
502 }
else if (line ==
"proxy info") {
505 talk_mgr->
Answer(con_fd, proxy_info);
506 }
else if (line ==
"proxy rebalance") {
508 talk_mgr->
Answer(con_fd,
"OK\n");
509 }
else if (line ==
"proxy group switch") {
511 talk_mgr->
Answer(con_fd,
"OK\n");
512 }
else if (line.substr(0, 18) ==
"external proxy set") {
513 if (line.length() < 20) {
514 talk_mgr->
Answer(con_fd,
"Usage: external proxy set <proxy list>\n");
516 string external_proxies = line.substr(19);
519 talk_mgr->
Answer(con_fd,
"OK\n");
521 }
else if (line.substr(0, 9) ==
"proxy set") {
522 if (line.length() < 11) {
523 talk_mgr->
Answer(con_fd,
"Usage: proxy set <proxy list>\n");
525 string proxies = line.substr(10);
530 talk_mgr->
Answer(con_fd,
"Failed, no valid proxies\n");
534 talk_mgr->
Answer(con_fd,
"OK\n");
537 }
else if (line.substr(0, 14) ==
"proxy fallback") {
538 if (line.length() < 15) {
539 talk_mgr->
Answer(con_fd,
"Usage: proxy fallback <proxy list>\n");
541 string fallback_proxies = line.substr(15);
544 talk_mgr->
Answer(con_fd,
"OK\n");
546 }
else if (line ==
"timeout info") {
548 unsigned timeout_direct;
550 string timeout_str =
"Timeout with proxy: ";
554 timeout_str +=
"no timeout\n";
555 timeout_str +=
"Timeout without proxy: ";
559 timeout_str +=
"no timeout\n";
560 talk_mgr->
Answer(con_fd, timeout_str);
561 }
else if (line.substr(0, 11) ==
"timeout set") {
562 if (line.length() < 13) {
563 talk_mgr->
Answer(con_fd,
"Usage: timeout set <proxy> <direct>\n");
566 uint64_t timeout_direct;
569 talk_mgr->
Answer(con_fd,
"OK\n");
571 }
else if (line ==
"open catalogs") {
573 }
else if (line ==
"drop metadata caches") {
584 talk_mgr->
Answer(con_fd,
"OK\n");
585 }
else if (line ==
"internal affairs") {
646 result +=
"\nCache Mode: ";
649 result +=
"read-write";
652 result +=
"read-only";
659 bool maintenance_mode;
661 result +=
"\nDrainout Mode: " +
StringifyBool(drainout_mode) +
"\n";
662 result +=
"Maintenance Mode: " +
StringifyBool(maintenance_mode) +
"\n";
665 result +=
"\nNFS Map Statistics:\n";
669 result +=
"SQlite Statistics:\n";
670 sqlite3_status(SQLITE_STATUS_MALLOC_COUNT, ¤t, &highwater, 0);
671 result +=
" Number of allocations " +
StringifyInt(current) +
"\n";
673 sqlite3_status(SQLITE_STATUS_MEMORY_USED, ¤t, &highwater, 0);
674 result +=
" General purpose allocator " +
StringifyInt(current/1024) +
677 sqlite3_status(SQLITE_STATUS_MALLOC_SIZE, ¤t, &highwater, 0);
678 result +=
" Largest malloc " +
StringifyInt(highwater) +
" Bytes\n";
680 sqlite3_status(SQLITE_STATUS_PAGECACHE_USED, ¤t, &highwater, 0);
681 result +=
" Page cache allocations " +
StringifyInt(current) +
" / " +
684 sqlite3_status(SQLITE_STATUS_PAGECACHE_OVERFLOW,
685 ¤t, &highwater, 0);
686 result +=
" Page cache overflows " +
StringifyInt(current/1024) +
689 sqlite3_status(SQLITE_STATUS_PAGECACHE_SIZE, ¤t, &highwater, 0);
690 result +=
" Largest page cache allocation " +
StringifyInt(highwater) +
693 sqlite3_status(SQLITE_STATUS_SCRATCH_USED, ¤t, &highwater, 0);
694 result +=
" Scratch allocations " +
StringifyInt(current) +
" / " +
697 sqlite3_status(SQLITE_STATUS_SCRATCH_OVERFLOW, ¤t, &highwater, 0);
698 result +=
" Scratch overflows " +
StringifyInt(current) +
" / " +
701 sqlite3_status(SQLITE_STATUS_SCRATCH_SIZE, ¤t, &highwater, 0);
702 result +=
" Largest scratch allocation " +
StringifyInt(highwater/1024)
705 result +=
"\nPer-Connection Memory Statistics:\n" +
708 result +=
"\nLatency distribution of system calls:\n";
712 result +=
"Multi-Forget\n"
723 result +=
"\nRaw Counters:\n" +
726 talk_mgr->
Answer(con_fd, result);
727 }
else if (line ==
"reset error counters") {
729 talk_mgr->
Answer(con_fd,
"OK\n");
730 }
else if (line ==
"pid") {
732 talk_mgr->
Answer(con_fd, pid_str);
733 }
else if (line ==
"pid cachemgr") {
734 const string pid_str =
736 talk_mgr->
Answer(con_fd, pid_str);
737 }
else if (line ==
"pid watchdog") {
739 talk_mgr->
Answer(con_fd, pid_str);
740 }
else if (line ==
"parameters") {
742 }
else if (line ==
"hotpatch history") {
745 " (start of CernVM-FS loader " +
747 for (loader::EventList::const_iterator i =
752 " (loaded CernVM-FS Fuse Module " +
753 (*i)->so_version +
")\n";
755 talk_mgr->
Answer(con_fd, history_str);
756 }
else if (line ==
"vfs inodes") {
765 talk_mgr->
Answer(con_fd, result);
766 }
else if (line ==
"vfs entries") {
770 uint64_t inode_parent;
773 &cursor, &inode_parent, &name))
779 talk_mgr->
Answer(con_fd, result);
780 }
else if (line ==
"version") {
781 const string version_str = string(CVMFS_VERSION) +
" (CernVM-FS Fuse Module)\n" +
783 talk_mgr->
Answer(con_fd, version_str);
784 }
else if (line ==
"version patchlevel") {
785 talk_mgr->
Answer(con_fd,
string(CVMFS_PATCH_LEVEL) +
"\n");
786 }
else if (line ==
"tear down to read-only") {
788 talk_mgr->
Answer(con_fd,
"not supported\n");
793 talk_mgr->
Answer(con_fd,
"In read-only mode\n");
795 }
else if (line ==
"latency") {
797 talk_mgr->
Answer(con_fd, result);
799 talk_mgr->
Answer(con_fd,
"unknown command\n");
809 const unsigned int bufSize = 300;
810 char buffer[bufSize];
829 string repo(mount_point.
fqrn());
831 unsigned int format_index =
832 snprintf(buffer, bufSize,
"\"%s\",\"%s\",\"%s\",\"%s\"",
"repository",
833 "action",
"total_count",
"time_unit");
834 for (
unsigned int i = 0; i < qs.size(); i++) {
835 format_index += snprintf(buffer + format_index, bufSize - format_index,
838 format_index += snprintf(buffer + format_index, bufSize - format_index,
"\n");
839 assert(format_index < bufSize);
842 memset(buffer, 0,
sizeof(buffer));
845 vector<Log2Histogram *> hist;
846 vector<string> names;
848 names.push_back(
"lookup");
850 names.push_back(
"forget");
852 names.push_back(
"forget_multi");
854 names.push_back(
"getattr");
856 names.push_back(
"readlink");
858 names.push_back(
"opendir");
860 names.push_back(
"releasedir");
862 names.push_back(
"readdir");
864 names.push_back(
"open");
866 names.push_back(
"read");
868 names.push_back(
"release");
870 for (
unsigned int j = 0; j < hist.size(); j++) {
872 unsigned int format_index =
873 snprintf(buffer, bufSize,
"\"%s\",\"%s\",%" PRIu64
",\"nanoseconds\"",
874 repo.c_str(), names[j].c_str(), h->
N());
875 for (
unsigned int i = 0; i < qs.size(); i++) {
876 format_index += snprintf(buffer + format_index, bufSize - format_index,
880 snprintf(buffer + format_index, bufSize - format_index,
"\n");
881 assert(format_index < bufSize);
884 memset(buffer, 0,
sizeof(buffer));
891 const string &socket_path,
897 , remounter_(remounter)
907 if ((retval != 0) && (errno != ENOENT)) {
909 "Could not remove cvmfs_io socket from cache directory (%d)",
OptionsManager * options_mgr()
virtual bool SetLimit(uint64_t limit)=0
void UnregisterQuotaListener()
int MakeSocket(const std::string &path, const int mode)
FileSystem * file_system()
atomic_int64 num_hits_inode
Log2Histogram * hist_fs_opendir()
atomic_int64 num_misses_path
Statistics GetStatistics()
virtual uint64_t GetCleanupRate(uint64_t period_s)=0
void SetHostChain(const std::string &host_list)
perf::Statistics * statistics()
virtual std::vector< std::string > List()=0
void SetMetalinkChain(const std::string &metalink_list)
static const int kProbeGeo
string Trim(const string &raw, bool trim_newline)
virtual bool Cleanup(const uint64_t leave_size)=0
string JoinStrings(const vector< string > &strings, const string &joint)
std::string PrintInodeGeneration()
const history::History * history() const
void SetProxyChain(const std::string &proxy_list, const std::string &fallback_proxy_list, const ProxySetModes set_mode)
MountPoint * mount_point_
void GetMetalinkInfo(std::vector< std::string > *metalink_chain, unsigned *current_metalink)
FuseRemounter * remounter_
lru::InodeCache * inode_cache()
std::string FormatProxyInfo(download::DownloadManager *download_mgr)
std::string FormatLatencies(const MountPoint &mount_point, FileSystem *file_system)
virtual std::vector< std::string > ListPinned()=0
assert((mem||(size==0))&&"Out Of Memory")
std::string FormatMetalinkInfo(download::DownloadManager *download_mgr)
MountPoint * mount_point_
Log2Histogram * hist_fs_read()
virtual std::vector< std::string > ListCatalogs()=0
std::string loader_version
virtual uint64_t GetSize()=0
string StringifyTime(const time_t seconds, const bool utc)
void EndEnumerate(Cursor *cursor)
void SetDnsServer(const std::string &address)
std::string StringifyUint(const uint64_t value)
virtual CacheManagerIds id()=0
lru::Md5PathCache * md5path_cache()
void SetTimeout(const unsigned seconds_proxy, const unsigned seconds_direct)
bool Pin(const string &path)
unsigned int GetQuantile(float n)
static TalkManager * Create(const std::string &socket_path, MountPoint *mount_point, FuseRemounter *remounter)
string StringifyBool(const bool value)
void Answer(int con_fd, const std::string &msg)
static uint64_t num_instances()
Counter * Lookup(const std::string &name) const
glue::PageCacheTracker * page_cache_tracker()
void SetMaxTtlMn(unsigned value_minutes)
void GetProxyInfo(std::vector< std::vector< ProxyInfo > > *proxy_chain, unsigned *current_group, unsigned *fallback_group)
catalog::ClientCatalogManager * catalog_mgr()
void Set(const int64_t val)
Log2Histogram * hist_fs_forget_multi()
Status CheckSynchronously()
void SetValueFromTalk(const std::string &key, const std::string &value)
Log2Histogram * hist_fs_release()
const loader::LoaderExports * loader_exports_
Statistics GetStatistics()
Statistics GetStatistics()
TalkManager(const std::string &socket_path, MountPoint *mount_point, FuseRemounter *remounter)
virtual std::string GetStatistics()
Log2Histogram * hist_fs_releasedir()
const char kSuffixCatalog
bool NextEntry(Cursor *cursor, uint64_t *inode_parent, NameString *name)
lru::PathCache * path_cache()
CacheManager * cache_mgr()
bool NextInode(Cursor *cursor, uint64_t *inode)
bool SendFuseFd(const std::string &socket_path)
download::DownloadManager * download_mgr()
virtual uint64_t GetSizePinned()=0
Status ChangeRoot(const shash::Any &root_hash)
Log2Histogram * hist_fs_readlink()
string StringifyInt(const int64_t value)
bool GetValue(const std::string &key, std::string *value) const
glue::DentryTracker * dentry_tracker()
Log2Histogram * hist_fs_readdir()
atomic_int64 num_references
std::string FormatHostInfo(download::DownloadManager *download_mgr)
Log2Histogram * hist_fs_open()
std::string GetDnsServer() const
std::string ToString() const
QuotaManager * quota_mgr()
uint64_t GetRevision() const
Log2Histogram * hist_fs_lookup()
string ResolveProxyDescription(const string &cvmfs_proxies, const std::string &path_fallback_cache, DownloadManager *download_manager)
uint64_t String2Uint64(const string &value)
static void * MainResponder(void *data)
void ResetErrorCounters()
bool Evict(const string &path)
std::string PrintList(const PrintOptions print_options)
void GetTimeout(unsigned *seconds_proxy, unsigned *seconds_direct)
void GetReloadStatus(bool *drainout_mode, bool *maintenance_mode)
Any MkFromHexPtr(const HexPtr hex, const char suffix)
static const int kProbeUnprobed
Log2Histogram * hist_fs_forget()
static const int kProbeDown
atomic_int64 num_hits_path
static uint64_t num_overflows()
Log2Histogram * hist_fs_getattr()
void GetHostInfo(std::vector< std::string > *host_chain, std::vector< int > *rtt, unsigned *current_host)
std::string PrintHierarchy() const
glue::InodeTracker * inode_tracker()
std::string PrintAllMemStatistics() const
virtual std::string Describe()=0
void AnswerStringList(int con_fd, const std::vector< std::string > &list)
virtual bool HasCapability(Capabilities capability)=0
download::DownloadManager * external_download_mgr()
void String2Uint64Pair(const string &value, uint64_t *a, uint64_t *b)
CVMFS_EXPORT void LogCvmfs(const LogSource source, const int mask, const char *format,...)