1*01a0f853SOlivier Houchard /* $NetBSD: ffs.h,v 1.1 2004/12/20 20:51:42 jmc Exp $ */ 2*01a0f853SOlivier Houchard 3*01a0f853SOlivier Houchard /* 4*01a0f853SOlivier Houchard * Copyright (c) 2001-2003 Wasabi Systems, Inc. 5*01a0f853SOlivier Houchard * All rights reserved. 6*01a0f853SOlivier Houchard * 7*01a0f853SOlivier Houchard * Written by Luke Mewburn for Wasabi Systems, Inc. 8*01a0f853SOlivier Houchard * 9*01a0f853SOlivier Houchard * Redistribution and use in source and binary forms, with or without 10*01a0f853SOlivier Houchard * modification, are permitted provided that the following conditions 11*01a0f853SOlivier Houchard * are met: 12*01a0f853SOlivier Houchard * 1. Redistributions of source code must retain the above copyright 13*01a0f853SOlivier Houchard * notice, this list of conditions and the following disclaimer. 14*01a0f853SOlivier Houchard * 2. Redistributions in binary form must reproduce the above copyright 15*01a0f853SOlivier Houchard * notice, this list of conditions and the following disclaimer in the 16*01a0f853SOlivier Houchard * documentation and/or other materials provided with the distribution. 17*01a0f853SOlivier Houchard * 3. All advertising materials mentioning features or use of this software 18*01a0f853SOlivier Houchard * must display the following acknowledgement: 19*01a0f853SOlivier Houchard * This product includes software developed for the NetBSD Project by 20*01a0f853SOlivier Houchard * Wasabi Systems, Inc. 21*01a0f853SOlivier Houchard * 4. The name of Wasabi Systems, Inc. may not be used to endorse 22*01a0f853SOlivier Houchard * or promote products derived from this software without specific prior 23*01a0f853SOlivier Houchard * written permission. 24*01a0f853SOlivier Houchard * 25*01a0f853SOlivier Houchard * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND 26*01a0f853SOlivier Houchard * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 27*01a0f853SOlivier Houchard * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 28*01a0f853SOlivier Houchard * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL WASABI SYSTEMS, INC 29*01a0f853SOlivier Houchard * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 30*01a0f853SOlivier Houchard * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 31*01a0f853SOlivier Houchard * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 32*01a0f853SOlivier Houchard * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 33*01a0f853SOlivier Houchard * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34*01a0f853SOlivier Houchard * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35*01a0f853SOlivier Houchard * POSSIBILITY OF SUCH DAMAGE. 36*01a0f853SOlivier Houchard * 37*01a0f853SOlivier Houchard * $FreeBSD$ 38*01a0f853SOlivier Houchard */ 39*01a0f853SOlivier Houchard 40*01a0f853SOlivier Houchard #ifndef _FFS_H 41*01a0f853SOlivier Houchard #define _FFS_H 42*01a0f853SOlivier Houchard 43*01a0f853SOlivier Houchard typedef struct { 44*01a0f853SOlivier Houchard int bsize; /* block size */ 45*01a0f853SOlivier Houchard int fsize; /* fragment size */ 46*01a0f853SOlivier Houchard int cpg; /* cylinders per group */ 47*01a0f853SOlivier Houchard int cpgflg; /* cpg was specified by user */ 48*01a0f853SOlivier Houchard int density; /* bytes per inode */ 49*01a0f853SOlivier Houchard int ntracks; /* number of tracks */ 50*01a0f853SOlivier Houchard int nsectors; /* number of sectors */ 51*01a0f853SOlivier Houchard int rpm; /* rpm */ 52*01a0f853SOlivier Houchard int minfree; /* free space threshold */ 53*01a0f853SOlivier Houchard int optimization; /* optimization (space or time) */ 54*01a0f853SOlivier Houchard int maxcontig; /* max contiguous blocks to allocate */ 55*01a0f853SOlivier Houchard int rotdelay; /* rotational delay between blocks */ 56*01a0f853SOlivier Houchard int maxbpg; /* maximum blocks per file in a cyl group */ 57*01a0f853SOlivier Houchard int nrpos; /* # of distinguished rotational positions */ 58*01a0f853SOlivier Houchard int avgfilesize; /* expected average file size */ 59*01a0f853SOlivier Houchard int avgfpdir; /* expected # of files per directory */ 60*01a0f853SOlivier Houchard int version; /* filesystem version (1 = FFS, 2 = UFS2) */ 61*01a0f853SOlivier Houchard int maxbsize; /* maximum extent size */ 62*01a0f853SOlivier Houchard int maxblkspercg; /* max # of blocks per cylinder group */ 63*01a0f853SOlivier Houchard /* XXX: support `old' file systems ? */ 64*01a0f853SOlivier Houchard } ffs_opt_t; 65*01a0f853SOlivier Houchard 66*01a0f853SOlivier Houchard #endif /* _FFS_H */ 67