1214921Scognet/* $NetBSD: ffs.h,v 1.1 2004/12/20 20:51:42 jmc Exp $ */ 2214921Scognet 3214921Scognet/* 4214921Scognet * Copyright (c) 2001-2003 Wasabi Systems, Inc. 5214921Scognet * All rights reserved. 6214921Scognet * 7214921Scognet * Written by Luke Mewburn for Wasabi Systems, Inc. 8214921Scognet * 9214921Scognet * Redistribution and use in source and binary forms, with or without 10214921Scognet * modification, are permitted provided that the following conditions 11214921Scognet * are met: 12214921Scognet * 1. Redistributions of source code must retain the above copyright 13214921Scognet * notice, this list of conditions and the following disclaimer. 14214921Scognet * 2. Redistributions in binary form must reproduce the above copyright 15214921Scognet * notice, this list of conditions and the following disclaimer in the 16214921Scognet * documentation and/or other materials provided with the distribution. 17214921Scognet * 3. All advertising materials mentioning features or use of this software 18214921Scognet * must display the following acknowledgement: 19214921Scognet * This product includes software developed for the NetBSD Project by 20214921Scognet * Wasabi Systems, Inc. 21214921Scognet * 4. The name of Wasabi Systems, Inc. may not be used to endorse 22214921Scognet * or promote products derived from this software without specific prior 23214921Scognet * written permission. 24214921Scognet * 25214921Scognet * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND 26214921Scognet * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 27214921Scognet * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 28214921Scognet * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL WASABI SYSTEMS, INC 29214921Scognet * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 30214921Scognet * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 31214921Scognet * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 32214921Scognet * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 33214921Scognet * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34214921Scognet * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35214921Scognet * POSSIBILITY OF SUCH DAMAGE. 36214921Scognet * 37214921Scognet * $FreeBSD$ 38214921Scognet */ 39214921Scognet 40214921Scognet#ifndef _FFS_H 41214921Scognet#define _FFS_H 42214921Scognet 43226169Snwhitehorn#include <ufs/ufs/dinode.h> 44226169Snwhitehorn#include <ufs/ffs/fs.h> 45226169Snwhitehorn 46214921Scognettypedef struct { 47226169Snwhitehorn char label[MAXVOLLEN]; /* volume name/label */ 48214921Scognet int bsize; /* block size */ 49214921Scognet int fsize; /* fragment size */ 50214921Scognet int cpg; /* cylinders per group */ 51214921Scognet int cpgflg; /* cpg was specified by user */ 52214921Scognet int density; /* bytes per inode */ 53214921Scognet int ntracks; /* number of tracks */ 54214921Scognet int nsectors; /* number of sectors */ 55214921Scognet int rpm; /* rpm */ 56214921Scognet int minfree; /* free space threshold */ 57214921Scognet int optimization; /* optimization (space or time) */ 58214921Scognet int maxcontig; /* max contiguous blocks to allocate */ 59214921Scognet int rotdelay; /* rotational delay between blocks */ 60214921Scognet int maxbpg; /* maximum blocks per file in a cyl group */ 61214921Scognet int nrpos; /* # of distinguished rotational positions */ 62214921Scognet int avgfilesize; /* expected average file size */ 63214921Scognet int avgfpdir; /* expected # of files per directory */ 64214921Scognet int version; /* filesystem version (1 = FFS, 2 = UFS2) */ 65214921Scognet int maxbsize; /* maximum extent size */ 66214921Scognet int maxblkspercg; /* max # of blocks per cylinder group */ 67214921Scognet /* XXX: support `old' file systems ? */ 68214921Scognet} ffs_opt_t; 69214921Scognet 70214921Scognet#endif /* _FFS_H */ 71