138032Speter/* $NetBSD: newfs_extern.h,v 1.2 2004/06/24 22:30:13 lukem Exp $ */ 2261363Sgshapiro/* From: NetBSD: extern.h,v 1.3 2000/12/01 12:03:27 simonb Exp $ */ 364562Sgshapiro 438032Speter/* 538032Speter * Copyright (c) 1997 Christos Zoulas. All rights reserved. 638032Speter * 738032Speter * Redistribution and use in source and binary forms, with or without 838032Speter * modification, are permitted provided that the following conditions 938032Speter * are met: 1038032Speter * 1. Redistributions of source code must retain the above copyright 1138032Speter * notice, this list of conditions and the following disclaimer. 1238032Speter * 2. Redistributions in binary form must reproduce the above copyright 1338032Speter * notice, this list of conditions and the following disclaimer in the 1464562Sgshapiro * documentation and/or other materials provided with the distribution. 15168515Sgshapiro * 3. All advertising materials mentioning features or use of this software 1638032Speter * must display the following acknowledgement: 1790792Sgshapiro * This product includes software developed by Christos Zoulas. 18266692Sgshapiro * 4. The name of the author may not be used to endorse or promote products 1990792Sgshapiro * derived from this software without specific prior written permission. 20266692Sgshapiro * 2190792Sgshapiro * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 2238032Speter * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 2338032Speter * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2438032Speter * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 25168515Sgshapiro * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2690792Sgshapiro * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27110560Sgshapiro * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2864562Sgshapiro * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2964562Sgshapiro * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 3038032Speter * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3138032Speter * 3238032Speter * $FreeBSD$ 3338032Speter */ 3438032Speter 3564562Sgshapiro/* prototypes */ 3638032Speterstruct fs *ffs_mkfs(const char *, const fsinfo_t *); 3738032Spetervoid ffs_write_superblock(struct fs *, const fsinfo_t *); 3838032Spetervoid ffs_rdfs(daddr_t, int, void *, const fsinfo_t *); 3938032Spetervoid ffs_wtfs(daddr_t, int, void *, const fsinfo_t *); 4038032Speter 4138032Speter#define FFS_MAXBSIZE 65536 4238032Speter