-
Notifications
You must be signed in to change notification settings - Fork 0
/
fusexmp.h
43 lines (35 loc) · 824 Bytes
/
fusexmp.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
#define MAX_MEMORY_COUNT 10000
#define MAX_BINODE_COUNT 100000
#define SUCCESS 0
#define FAILURE 1
typedef struct
{
uint64_t inode_block;
unsigned char hash_key[16];
UT_hash_handle hh;
}HASH_TABLE_INODE_N_BLOCK;
/*
typedef struct
{
hash_key;
int index;
UT_hash_handle hh;
}HASH_TABLE_MD5_CACHE;
*/
typedef struct
{
unsigned char hash_key[16];
unsigned char *data_block;
UT_hash_handle hh;
}HASH_TABLE_MEMORY_CACHE;
HASH_TABLE_INODE_N_BLOCK *block_inode=NULL;
// HASH_TABLE_MD5_CACHE *md5=NULL;
HASH_TABLE_MEMORY_CACHE *memory=NULL;
static int count_block_inode=0,count_md5_cache=0,case1=0,case2=0,case3=0,case4=0;
//char cases[3][10]={"Ranjan","nakul","india"};
typedef struct
{
char name[70];
int count;
}STATS;
#define FUSEXMP_DATA fuse_get_context()->private_data