GCC Code Coverage Report


Directory: cvmfs/
File: cvmfs/nfs_maps.h
Date: 2026-05-19 11:45:12
Exec Total Coverage
Lines: 0 5 0.0%
Branches: 0 2 0.0%

Line Branch Exec Source
1 /**
2 * This file is part of the CernVM File System.
3 */
4
5 #ifndef CVMFS_NFS_MAPS_H_
6 #define CVMFS_NFS_MAPS_H_
7
8 #include <inttypes.h>
9 #include <stdint.h>
10
11 #include <string>
12
13 #include "shortstring.h"
14 #include "util/logging.h"
15 #include "util/single_copy.h"
16
17 class NfsMaps : SingleCopy {
18 public:
19 virtual ~NfsMaps() { }
20 virtual uint64_t GetInode(const PathString &path) = 0;
21 virtual bool GetPath(const uint64_t inode, PathString *path) = 0;
22
23 /**
24 * Ensures that NFS maps inodes have the form an+b so that we can have
25 * non-overlapping inodes for independent repositories.
26 */
27 virtual void SetInodeResidue(unsigned residue_class, unsigned remainder) {
28 LogCvmfs(kLogNfsMaps, kLogSyslogWarn,
29 "Warning: interleaved inode mode unsupported");
30 }
31
32 virtual void Spawn() { }
33 virtual std::string GetStatistics() { return ""; }
34 };
35
36 #endif // CVMFS_NFS_MAPS_H_
37