14d13ab3dSPoul-Henning Kamp /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 33728855aSPedro F. Giffuni * 44d13ab3dSPoul-Henning Kamp * Copyright (c) 2004 Poul-Henning Kamp 54d13ab3dSPoul-Henning Kamp * All rights reserved. 64d13ab3dSPoul-Henning Kamp * 74d13ab3dSPoul-Henning Kamp * Redistribution and use in source and binary forms, with or without 84d13ab3dSPoul-Henning Kamp * modification, are permitted provided that the following conditions 94d13ab3dSPoul-Henning Kamp * are met: 104d13ab3dSPoul-Henning Kamp * 1. Redistributions of source code must retain the above copyright 114d13ab3dSPoul-Henning Kamp * notice, this list of conditions and the following disclaimer. 124d13ab3dSPoul-Henning Kamp * 2. Redistributions in binary form must reproduce the above copyright 134d13ab3dSPoul-Henning Kamp * notice, this list of conditions and the following disclaimer in the 144d13ab3dSPoul-Henning Kamp * documentation and/or other materials provided with the distribution. 154d13ab3dSPoul-Henning Kamp * 164d13ab3dSPoul-Henning Kamp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 174d13ab3dSPoul-Henning Kamp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 184d13ab3dSPoul-Henning Kamp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 194d13ab3dSPoul-Henning Kamp * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 204d13ab3dSPoul-Henning Kamp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 214d13ab3dSPoul-Henning Kamp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 224d13ab3dSPoul-Henning Kamp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 234d13ab3dSPoul-Henning Kamp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 244d13ab3dSPoul-Henning Kamp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 254d13ab3dSPoul-Henning Kamp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 264d13ab3dSPoul-Henning Kamp * SUCH DAMAGE. 274d13ab3dSPoul-Henning Kamp */ 284d13ab3dSPoul-Henning Kamp 294d13ab3dSPoul-Henning Kamp #ifndef _GEOM_GEOM_VFS_H_ 304d13ab3dSPoul-Henning Kamp #define _GEOM_GEOM_VFS_H_ 314d13ab3dSPoul-Henning Kamp 324d13ab3dSPoul-Henning Kamp struct vnode; 334d13ab3dSPoul-Henning Kamp struct bufobj; 344d13ab3dSPoul-Henning Kamp struct buf; 354d13ab3dSPoul-Henning Kamp 364d13ab3dSPoul-Henning Kamp extern struct buf_ops *g_vfs_bufops; 374d13ab3dSPoul-Henning Kamp 384d13ab3dSPoul-Henning Kamp void g_vfs_strategy(struct bufobj *bo, struct buf *bp); 394d13ab3dSPoul-Henning Kamp int g_vfs_open(struct vnode *vp, struct g_consumer **cpp, const char *fsname, int wr); 400d7935fdSAttilio Rao void g_vfs_close(struct g_consumer *cp); 414d13ab3dSPoul-Henning Kamp 424d13ab3dSPoul-Henning Kamp #endif /* _GEOM_GEOM_VFS_H_ */ 43