GCC Code Coverage Report
Directory: cvmfs/ Exec Total Coverage
File: cvmfs/duplex_fuse.h Lines: 3 3 100.0 %
Date: 2019-02-03 02:48:13 Branches: 0 0 - %

Line Branch Exec Source
1
/**
2
 * This file is part of the CernVM File System.
3
 */
4
5
#ifndef CVMFS_DUPLEX_FUSE_H_
6
#define CVMFS_DUPLEX_FUSE_H_
7
8
#ifdef CVMFS_LIBCVMFS
9
// Unit tests
10
#define FUSE_VERSION 29
11
#define FUSE_ROOT_ID 1
12
extern "C" {
13
// Empty structs have different sizes in C and C++, hence the dummy int
14
struct fuse_chan { int dummy; };
15
// Defined in t_fuse_evict.cc
16
extern unsigned fuse_lowlevel_notify_inval_inode_cnt;
17
1536
static int __attribute__((used)) fuse_lowlevel_notify_inval_inode(
18
  void *, unsigned /*fuse_ino_t*/, off_t, off_t)  // NOLINT (ulong from fuse)
19
{
20
1536
  fuse_lowlevel_notify_inval_inode_cnt++;
21
1536
  return -1;
22
}
23
}
24
#else
25
#define FUSE_USE_VERSION 26
26
#include <fuse/fuse_lowlevel.h>
27
#if(FUSE_VERSION < 28)
28
#include <cstdlib>
29
extern "C" {
30
static int __attribute__((used)) fuse_lowlevel_notify_inval_entry(
31
  void *, unsigned long, const char *, size_t)  // NOLINT
32
{
33
  abort();
34
}
35
static int __attribute__((used)) fuse_lowlevel_notify_inval_inode(
36
  void *, fuse_ino_t, off_t, off_t)  // NOLINT
37
{
38
  abort();
39
}
40
}
41
#endif
42
#endif
43
44
#endif  // CVMFS_DUPLEX_FUSE_H_