CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
nfs_maps.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_NFS_MAPS_H_
6 #define CVMFS_NFS_MAPS_H_
7 
8 #ifndef __STDC_FORMAT_MACROS
9 #define __STDC_FORMAT_MACROS
10 #endif
11 
12 #include <inttypes.h>
13 #include <stdint.h>
14 
15 #include <string>
16 
17 #include "shortstring.h"
18 #include "util/logging.h"
19 #include "util/single_copy.h"
20 
22  public:
23  virtual ~NfsMaps() { }
24  virtual uint64_t GetInode(const PathString &path) = 0;
25  virtual bool GetPath(const uint64_t inode, PathString *path) = 0;
26 
31  virtual void SetInodeResidue(unsigned residue_class, unsigned remainder) {
33  "Warning: interleaved inode mode unsupported");
34  }
35 
36  virtual void Spawn() { }
37  virtual std::string GetStatistics() { return ""; }
38 };
39 
40 #endif // CVMFS_NFS_MAPS_H_
virtual std::string GetStatistics()
Definition: nfs_maps.h:37
virtual bool GetPath(const uint64_t inode, PathString *path)=0
virtual void Spawn()
Definition: nfs_maps.h:36
virtual ~NfsMaps()
Definition: nfs_maps.h:23
virtual uint64_t GetInode(const PathString &path)=0
virtual void SetInodeResidue(unsigned residue_class, unsigned remainder)
Definition: nfs_maps.h:31
CVMFS_EXPORT void LogCvmfs(const LogSource source, const int mask, const char *format,...)
Definition: logging.cc:528