-
Notifications
You must be signed in to change notification settings - Fork 5
/
params.h
78 lines (61 loc) · 2.31 KB
/
params.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*
This file is part of ESFS, a FUSE-based filesystem that supports snapshots.
ESFS is Copyright (C) 2013 Elod Csirmaz
<http://www.epcsirmaz.com/> <https://github.com/csirmaz>.
ESFS is based on Big Brother File System (fuse-tutorial)
Copyright (C) 2012 Joseph J. Pfeiffer, Jr., Ph.D. <[email protected]>,
and was forked from it on 21 August 2013.
Big Brother File System can be distributed under the terms of
the GNU GPLv3. See the file COPYING.
See also <http://www.cs.nmsu.edu/~pfeiffer/fuse-tutorial/>.
Big Brother File System was derived from function prototypes found in
/usr/include/fuse/fuse.h
Copyright (C) 2001-2007 Miklos Szeredi <[email protected]>
fuse.h is licensed under the LGPLv2.
ESFS is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
ESFS is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public License along
with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* NOTE: A Perl script is used to replace $ with esfs_ and $$ with ESFS_
* in this file. To write $, use \$.
*/
/*
There are a couple of symbols that need to be #defined before
#including all the headers.
*/
#ifndef $$PARAMS_H_
#define $$PARAMS_H_
/** Debug level
* * 0 = no logs
* * 1 = important messages
* * 2 = debug messages
*/
#define $$DEBUG 1
// For libraries
// -------------
/** The FUSE API has been changed a number of times. So, our code
*needs to define the version of the API that we assume. As of this
* writing, the most current API version is 26
*/
#define FUSE_USE_VERSION 26
// Need this to get pwrite(). I have to use setvbuf() instead of
// setlinebuf() later in consequence.
// pwrite needs >= 500
// pselect needs >= 600
// nftw needs >= 500
// define _XOPEN_SOURCE 600
// Included in _GNU_SOURCE
// Needed to get utimensat and AT_FDCWD
// define _ATFILE_SOURCE 1
// Included in _GNU_SOURCE
// Needed for O_NOATIME
#define _GNU_SOURCE 1
#endif