diff options
author | Brian Behlendorf <[email protected]> | 2010-12-17 11:18:08 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-02-10 09:21:42 -0800 |
commit | e5c39b95a7ccc19ce7a3af8d8d09f0b8959a3991 (patch) | |
tree | 4290826e60a934ffa6a465dfa615b258e7962a39 /include/sys | |
parent | 72d5e2da3e45a6865806f1be908232f5fea8787b (diff) |
Export required vfs/vn symbols
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/Makefile.am | 1 | ||||
-rw-r--r-- | include/sys/Makefile.in | 3 | ||||
-rw-r--r-- | include/sys/zfs_vfsops.h | 8 | ||||
-rw-r--r-- | include/sys/zfs_vnops.h | 80 |
4 files changed, 92 insertions, 0 deletions
diff --git a/include/sys/Makefile.am b/include/sys/Makefile.am index 59e137104..1aeb5da2d 100644 --- a/include/sys/Makefile.am +++ b/include/sys/Makefile.am @@ -62,6 +62,7 @@ COMMON_H = \ $(top_srcdir)/include/sys/zfs_stat.h \ $(top_srcdir)/include/sys/zfs_vfsops.h \ $(top_srcdir)/include/sys/zfs_znode.h \ + $(top_srcdir)/include/sys/zfs_vnops.h \ $(top_srcdir)/include/sys/zil.h \ $(top_srcdir)/include/sys/zil_impl.h \ $(top_srcdir)/include/sys/zio_checksum.h \ diff --git a/include/sys/Makefile.in b/include/sys/Makefile.in index 2e8af81de..59066479a 100644 --- a/include/sys/Makefile.in +++ b/include/sys/Makefile.in @@ -152,6 +152,7 @@ am__kernel_HEADERS_DIST = $(top_srcdir)/include/sys/arc.h \ $(top_srcdir)/include/sys/zfs_stat.h \ $(top_srcdir)/include/sys/zfs_vfsops.h \ $(top_srcdir)/include/sys/zfs_znode.h \ + $(top_srcdir)/include/sys/zfs_vnops.h \ $(top_srcdir)/include/sys/zil.h \ $(top_srcdir)/include/sys/zil_impl.h \ $(top_srcdir)/include/sys/zio_checksum.h \ @@ -246,6 +247,7 @@ am__libzfs_HEADERS_DIST = $(top_srcdir)/include/sys/arc.h \ $(top_srcdir)/include/sys/zfs_stat.h \ $(top_srcdir)/include/sys/zfs_vfsops.h \ $(top_srcdir)/include/sys/zfs_znode.h \ + $(top_srcdir)/include/sys/zfs_vnops.h \ $(top_srcdir)/include/sys/zil.h \ $(top_srcdir)/include/sys/zil_impl.h \ $(top_srcdir)/include/sys/zio_checksum.h \ @@ -516,6 +518,7 @@ COMMON_H = \ $(top_srcdir)/include/sys/zfs_stat.h \ $(top_srcdir)/include/sys/zfs_vfsops.h \ $(top_srcdir)/include/sys/zfs_znode.h \ + $(top_srcdir)/include/sys/zfs_vnops.h \ $(top_srcdir)/include/sys/zil.h \ $(top_srcdir)/include/sys/zil_impl.h \ $(top_srcdir)/include/sys/zio_checksum.h \ diff --git a/include/sys/zfs_vfsops.h b/include/sys/zfs_vfsops.h index 38c87df43..ec4097768 100644 --- a/include/sys/zfs_vfsops.h +++ b/include/sys/zfs_vfsops.h @@ -152,6 +152,14 @@ extern int zfsvfs_create(const char *name, zfsvfs_t **zfvp); extern void zfsvfs_free(zfsvfs_t *zfsvfs); extern int zfs_check_global_label(const char *dsname, const char *hexsl); +extern int zfs_register_callbacks(vfs_t *vfsp); +extern void zfs_unregister_callbacks(zfsvfs_t *zfsvfs); +extern int zfs_domount(vfs_t *vfsp, char *osname); +extern int zfs_umount(vfs_t *vfsp, int fflag, cred_t *cr); +extern int zfs_root(vfs_t *vfsp, vnode_t **vpp); +extern int zfs_statvfs(vfs_t *vfsp, struct statvfs64 *statp); +extern int zfs_vget(vfs_t *vfsp, vnode_t **vpp, fid_t *fidp); + #ifdef __cplusplus } #endif diff --git a/include/sys/zfs_vnops.h b/include/sys/zfs_vnops.h new file mode 100644 index 000000000..64e2210de --- /dev/null +++ b/include/sys/zfs_vnops.h @@ -0,0 +1,80 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. + */ + +#ifndef _SYS_FS_ZFS_VNOPS_H +#define _SYS_FS_ZFS_VNOPS_H + +#include <sys/vnode.h> +#include <sys/uio.h> +#include <sys/cred.h> + +#ifdef __cplusplus +extern "C" { +#endif + +extern int zfs_read(vnode_t *vp, uio_t *uio, int ioflag, cred_t *cr, + caller_context_t *ct); +extern int zfs_write(vnode_t *vp, uio_t *uio, int ioflag, cred_t *cr, + caller_context_t *ct); +extern int zfs_lookup(vnode_t *dvp, char *nm, vnode_t **vpp, + struct pathname *pnp, int flags, vnode_t *rdir, cred_t *cr, + caller_context_t *ct, int *direntflags, pathname_t *realpnp); +extern int zfs_create(vnode_t *dvp, char *name, vattr_t *vap, + int excl, int mode, vnode_t **vpp, cred_t *cr, int flag, + caller_context_t *ct, vsecattr_t *vsecp); +extern int zfs_remove(vnode_t *dvp, char *name, cred_t *cr, + caller_context_t *ct, int flags); +extern int zfs_mkdir(vnode_t *dvp, char *dirname, vattr_t *vap, + vnode_t **vpp, cred_t *cr, caller_context_t *ct, int flags, + vsecattr_t *vsecp); +extern int zfs_rmdir(vnode_t *dvp, char *name, vnode_t *cwd, cred_t *cr, + caller_context_t *ct, int flags); +extern int zfs_fsync(vnode_t *vp, int syncflag, cred_t *cr, + caller_context_t *ct); +extern int zfs_getattr(vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, + caller_context_t *ct); +extern int zfs_setattr(vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, + caller_context_t *ct); +extern int zfs_rename(vnode_t *sdvp, char *snm, vnode_t *tdvp, char *tnm, + cred_t *cr, caller_context_t *ct, int flags); +extern int zfs_symlink(vnode_t *dvp, char *name, vattr_t *vap, char *link, + cred_t *cr, caller_context_t *ct, int flags); +extern int zfs_readlink(vnode_t *vp, uio_t *uio, cred_t *cr, + caller_context_t *ct); +extern int zfs_link(vnode_t *tdvp, vnode_t *svp, char *name, cred_t *cr, + caller_context_t *ct, int flags); +extern void zfs_inactive(vnode_t *vp, cred_t *cr, caller_context_t *ct); +extern int zfs_space(vnode_t *vp, int cmd, flock64_t *bfp, int flag, + offset_t offset, cred_t *cr, caller_context_t *ct); +extern int zfs_fid(vnode_t *vp, fid_t *fidp, caller_context_t *ct); +extern int zfs_getsecattr(vnode_t *vp, vsecattr_t *vsecp, int flag, + cred_t *cr, caller_context_t *ct); +extern int zfs_setsecattr(vnode_t *vp, vsecattr_t *vsecp, int flag, + cred_t *cr, caller_context_t *ct); + +#ifdef __cplusplus +} +#endif + +#endif /* _SYS_FS_ZFS_VNOPS_H */ |