geom_vfs.h revision 183754
1137034Sphk/*- 2137034Sphk * Copyright (c) 2004 Poul-Henning Kamp 3137034Sphk * All rights reserved. 4137034Sphk * 5137034Sphk * Redistribution and use in source and binary forms, with or without 6137034Sphk * modification, are permitted provided that the following conditions 7137034Sphk * are met: 8137034Sphk * 1. Redistributions of source code must retain the above copyright 9137034Sphk * notice, this list of conditions and the following disclaimer. 10137034Sphk * 2. Redistributions in binary form must reproduce the above copyright 11137034Sphk * notice, this list of conditions and the following disclaimer in the 12137034Sphk * documentation and/or other materials provided with the distribution. 13137034Sphk * 14137034Sphk * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15137034Sphk * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16137034Sphk * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17137034Sphk * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18137034Sphk * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19137034Sphk * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20137034Sphk * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21137034Sphk * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22137034Sphk * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23137034Sphk * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24137034Sphk * SUCH DAMAGE. 25137034Sphk * 26137034Sphk * $FreeBSD: head/sys/geom/geom_vfs.h 183754 2008-10-10 21:23:50Z attilio $ 27137034Sphk */ 28137034Sphk 29137034Sphk#ifndef _GEOM_GEOM_VFS_H_ 30137034Sphk#define _GEOM_GEOM_VFS_H_ 31137034Sphk 32137034Sphkstruct vnode; 33137034Sphkstruct bufobj; 34137034Sphkstruct buf; 35137034Sphk 36137034Sphkextern struct buf_ops *g_vfs_bufops; 37137034Sphk 38137034Sphkvoid g_vfs_strategy(struct bufobj *bo, struct buf *bp); 39137034Sphkint g_vfs_open(struct vnode *vp, struct g_consumer **cpp, const char *fsname, int wr); 40183754Sattiliovoid g_vfs_close(struct g_consumer *cp); 41137034Sphk 42137034Sphk#endif /* _GEOM_GEOM_VFS_H_ */ 43