forked from fuse4x/kext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fuse_vfsops.h
66 lines (48 loc) · 1.49 KB
/
fuse_vfsops.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
/*
* 'rebel' branch modifications:
* Copyright (C) 2010 Tuxera. All Rights Reserved.
*/
/*
* Copyright (C) 2006-2008 Google. All Rights Reserved.
* Amit Singh <singh@>
*/
#ifndef _FUSE_VFSOPS_H_
#define _FUSE_VFSOPS_H_
#include <sys/kernel_types.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/vnode.h>
#include <fuse_param.h>
struct fuse_data;
struct fuse_ticket;
#if M_FUSE4X_ENABLE_BIGLOCK
extern struct vnodeopv_entry_desc fuse_biglock_vnode_operation_entries[];
#else
extern struct vnodeopv_entry_desc fuse_vnode_operation_entries[];
#endif
#if M_FUSE4X_ENABLE_SPECFS
extern struct vnodeopv_entry_desc fuse_spec_operation_entries[];
#endif
#if M_FUSE4X_ENABLE_FIFOFS
extern struct vnodeopv_entry_desc fuse_fifo_operation_entries[];
#endif
/* VFS operations */
static errno_t
fuse_vfsop_mount(mount_t mp, vnode_t devvp, user_addr_t data,
vfs_context_t context);
static errno_t
fuse_vfsop_unmount(mount_t mp, int mntflags, vfs_context_t context);
static errno_t
fuse_vfsop_root(mount_t mp, vnode_t *vpp, vfs_context_t context);
static errno_t
fuse_vfsop_getattr(mount_t mp, struct vfs_attr *attr, vfs_context_t context);
static errno_t
fuse_vfsop_sync(mount_t mp, int waitfor, vfs_context_t context);
static errno_t
fuse_vfsop_setattr(mount_t mp, struct vfs_attr *fsap,
__unused vfs_context_t context);
/* Other VFS operations */
extern int
fuse_setextendedsecurity(mount_t mp, int state);
#endif /* _FUSE_VFSOPS_H_ */