1*9f988b79SJean-Baptiste Boric /* $NetBSD: newfs_extern.h,v 1.3 2009/10/21 01:07:47 snj Exp $ */ 2*9f988b79SJean-Baptiste Boric /* From: NetBSD: extern.h,v 1.3 2000/12/01 12:03:27 simonb Exp $ */ 3*9f988b79SJean-Baptiste Boric 4*9f988b79SJean-Baptiste Boric /* 5*9f988b79SJean-Baptiste Boric * Copyright (c) 1997 Christos Zoulas. All rights reserved. 6*9f988b79SJean-Baptiste Boric * 7*9f988b79SJean-Baptiste Boric * Redistribution and use in source and binary forms, with or without 8*9f988b79SJean-Baptiste Boric * modification, are permitted provided that the following conditions 9*9f988b79SJean-Baptiste Boric * are met: 10*9f988b79SJean-Baptiste Boric * 1. Redistributions of source code must retain the above copyright 11*9f988b79SJean-Baptiste Boric * notice, this list of conditions and the following disclaimer. 12*9f988b79SJean-Baptiste Boric * 2. Redistributions in binary form must reproduce the above copyright 13*9f988b79SJean-Baptiste Boric * notice, this list of conditions and the following disclaimer in the 14*9f988b79SJean-Baptiste Boric * documentation and/or other materials provided with the distribution. 15*9f988b79SJean-Baptiste Boric * 16*9f988b79SJean-Baptiste Boric * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17*9f988b79SJean-Baptiste Boric * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18*9f988b79SJean-Baptiste Boric * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19*9f988b79SJean-Baptiste Boric * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20*9f988b79SJean-Baptiste Boric * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21*9f988b79SJean-Baptiste Boric * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22*9f988b79SJean-Baptiste Boric * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23*9f988b79SJean-Baptiste Boric * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24*9f988b79SJean-Baptiste Boric * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25*9f988b79SJean-Baptiste Boric * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26*9f988b79SJean-Baptiste Boric */ 27*9f988b79SJean-Baptiste Boric 28*9f988b79SJean-Baptiste Boric /* prototypes */ 29*9f988b79SJean-Baptiste Boric struct fs *ffs_mkfs(const char *, const fsinfo_t *); 30*9f988b79SJean-Baptiste Boric void ffs_write_superblock(struct fs *, const fsinfo_t *); 31*9f988b79SJean-Baptiste Boric void ffs_rdfs(daddr_t, int, void *, const fsinfo_t *); 32*9f988b79SJean-Baptiste Boric void ffs_wtfs(daddr_t, int, void *, const fsinfo_t *); 33*9f988b79SJean-Baptiste Boric 34*9f988b79SJean-Baptiste Boric #define FFS_MAXBSIZE 65536 35