blob: de1724c425f40e501f435a8fa96350c124d94be8 (
plain) (
blame)
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
|
/*
FUSE: Filesystem in Userspace
Copyright (C) 2001-2005 Miklos Szeredi <miklos@szeredi.hu>
This program can be distributed under the terms of the GNU LGPL.
See the file COPYING.LIB.
*/
/* For pthread_rwlock_t */
#define _GNU_SOURCE
#include "fuse.h"
#include "fuse_lowlevel.h"
#include <pthread.h>
struct fuse {
struct fuse_ll *fll;
int flags;
struct fuse_operations op;
int compat;
struct node **name_table;
size_t name_table_size;
struct node **id_table;
size_t id_table_size;
fuse_ino_t ctr;
unsigned int generation;
unsigned int hidectr;
pthread_mutex_t lock;
pthread_rwlock_t tree_lock;
void *user_data;
uid_t uid;
gid_t gid;
mode_t umask;
};
struct fuse *fuse_new_common(int fd, const char *opts,
const struct fuse_operations *op,
size_t op_size, int compat);
|