Export required vfs/vn symbols
[zfs.git] / include / sys / zfs_vnops.h
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
23  */
24
25 #ifndef _SYS_FS_ZFS_VNOPS_H
26 #define _SYS_FS_ZFS_VNOPS_H
27
28 #include <sys/vnode.h>
29 #include <sys/uio.h>
30 #include <sys/cred.h>
31
32 #ifdef  __cplusplus
33 extern "C" {
34 #endif
35
36 extern int zfs_read(vnode_t *vp, uio_t *uio, int ioflag, cred_t *cr,
37     caller_context_t *ct);
38 extern int zfs_write(vnode_t *vp, uio_t *uio, int ioflag, cred_t *cr,
39     caller_context_t *ct);
40 extern int zfs_lookup(vnode_t *dvp, char *nm, vnode_t **vpp,
41     struct pathname *pnp, int flags, vnode_t *rdir, cred_t *cr,
42     caller_context_t *ct, int *direntflags, pathname_t *realpnp);
43 extern int zfs_create(vnode_t *dvp, char *name, vattr_t *vap,
44     int excl, int mode, vnode_t **vpp, cred_t *cr, int flag,
45     caller_context_t *ct, vsecattr_t *vsecp);
46 extern int zfs_remove(vnode_t *dvp, char *name, cred_t *cr,
47     caller_context_t *ct, int flags);
48 extern int zfs_mkdir(vnode_t *dvp, char *dirname, vattr_t *vap,
49     vnode_t **vpp, cred_t *cr, caller_context_t *ct, int flags,
50     vsecattr_t *vsecp);
51 extern int zfs_rmdir(vnode_t *dvp, char *name, vnode_t *cwd, cred_t *cr,
52     caller_context_t *ct, int flags);
53 extern int zfs_fsync(vnode_t *vp, int syncflag, cred_t *cr,
54     caller_context_t *ct);
55 extern int zfs_getattr(vnode_t *vp, vattr_t *vap, int flags, cred_t *cr,
56     caller_context_t *ct);
57 extern int zfs_setattr(vnode_t *vp, vattr_t *vap, int flags, cred_t *cr,
58     caller_context_t *ct);
59 extern int zfs_rename(vnode_t *sdvp, char *snm, vnode_t *tdvp, char *tnm,
60     cred_t *cr, caller_context_t *ct, int flags);
61 extern int zfs_symlink(vnode_t *dvp, char *name, vattr_t *vap, char *link,
62     cred_t *cr, caller_context_t *ct, int flags);
63 extern int zfs_readlink(vnode_t *vp, uio_t *uio, cred_t *cr,
64     caller_context_t *ct);
65 extern int zfs_link(vnode_t *tdvp, vnode_t *svp, char *name, cred_t *cr,
66     caller_context_t *ct, int flags);
67 extern void zfs_inactive(vnode_t *vp, cred_t *cr, caller_context_t *ct);
68 extern int zfs_space(vnode_t *vp, int cmd, flock64_t *bfp, int flag,
69     offset_t offset, cred_t *cr, caller_context_t *ct);
70 extern int zfs_fid(vnode_t *vp, fid_t *fidp, caller_context_t *ct);
71 extern int zfs_getsecattr(vnode_t *vp, vsecattr_t *vsecp, int flag,
72     cred_t *cr, caller_context_t *ct);
73 extern int zfs_setsecattr(vnode_t *vp, vsecattr_t *vsecp, int flag,
74     cred_t *cr, caller_context_t *ct);
75
76 #ifdef  __cplusplus
77 }
78 #endif
79
80 #endif  /* _SYS_FS_ZFS_VNOPS_H */