-
Notifications
You must be signed in to change notification settings - Fork 7
/
fuse_vfsops.h
50 lines (37 loc) · 1.21 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
/*
* Copyright (C) 2006-2008 Google. All Rights Reserved.
* Copyright (C) 2010 Tuxera. All Rights Reserved.
* Copyright (C) 2011 Anatol Pomozov. All Rights Reserved.
*/
#ifndef _FUSE_VFSOPS_H_
#define _FUSE_VFSOPS_H_
#include "fuse.h"
#include <fuse_param.h>
#include <sys/kernel_types.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/vnode.h>
struct fuse_data;
struct fuse_ticket;
#ifdef FUSE4X_ENABLE_BIGLOCK
extern struct vnodeopv_entry_desc fuse_biglock_vnode_operation_entries[];
#else
extern struct vnodeopv_entry_desc fuse_vnode_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);
#endif /* _FUSE_VFSOPS_H_ */