PageRenderTime 52ms CodeModel.GetById 37ms app.highlight 9ms RepoModel.GetById 2ms app.codeStats 0ms

/core/10.5/fusefs/fuse_vfsops.h

http://macfuse.googlecode.com/
C++ Header | 57 lines | 34 code | 17 blank | 6 comment | 0 complexity | 2ec068c6273787d92f8a6b2565ee52af MD5 | raw file
 1/*
 2 * Copyright (C) 2006-2008 Google. All Rights Reserved.
 3 * Amit Singh <singh@>
 4 */
 5
 6#ifndef _FUSE_VFSOPS_H_
 7#define _FUSE_VFSOPS_H_
 8
 9#include <sys/kernel_types.h>
10#include <sys/mount.h>
11#include <sys/stat.h>
12#include <sys/types.h>
13#include <sys/vnode.h>
14
15#include <fuse_param.h>
16
17struct fuse_data;
18struct fuse_ticket;
19
20extern struct vnodeopv_entry_desc fuse_vnode_operation_entries[];
21
22#if M_MACFUSE_ENABLE_SPECFS
23extern struct vnodeopv_entry_desc fuse_spec_operation_entries[];
24#endif
25
26#if M_MACFUSE_ENABLE_FIFOFS
27extern struct vnodeopv_entry_desc fuse_fifo_operation_entries[];
28#endif
29
30/* VFS operations */
31
32static errno_t
33fuse_vfsop_mount(mount_t mp, vnode_t devvp, user_addr_t data,
34                 vfs_context_t context);
35
36static errno_t
37fuse_vfsop_unmount(mount_t mp, int mntflags, vfs_context_t context);
38
39static errno_t
40fuse_vfsop_root(mount_t mp, vnode_t *vpp, vfs_context_t context);
41
42static errno_t
43fuse_vfsop_getattr(mount_t mp, struct vfs_attr *attr, vfs_context_t context);
44
45static errno_t
46fuse_vfsop_sync(mount_t mp, int waitfor, vfs_context_t context);
47
48static errno_t
49fuse_vfsop_setattr(mount_t mp, struct vfs_attr *fsap,
50                   __unused vfs_context_t context);
51
52/* Other VFS operations */
53
54extern int
55fuse_setextendedsecurity(mount_t mp, int state);
56
57#endif /* _FUSE_VFSOPS_H_ */