-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathalignfuse.h
46 lines (37 loc) · 922 Bytes
/
alignfuse.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
/*
SafeFS
(c) 2016 2016 INESC TEC. Written by J. Paulo and R. Pontes
*/
#ifndef __ALIGNFUSE_H__
#define __ALIGNFUSE_H__
#ifdef __linux__
#ifndef FUSE_USE_VERSION
#define FUSE_USE_VERSION 26
#endif /* FUSE_USE_VERSION */
#endif /* __linux__ */
#if defined(_POSIX_C_SOURCE)
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
typedef unsigned long u_long;
#endif
#include <fuse.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
#include <sys/time.h>
#include <sys/xattr.h>
#include <sys/param.h>
#include "layers_def.h"
#include "align/nopalign.h"
#include "align/blockalign.h"
#include "logdef.h"
#define NOP 0
#define BLOCK 1
int init_align_driver(struct fuse_operations** originop, configuration config);
int clean_align_driver(configuration config);
#endif /* __ALIGNFUSE_H__ */