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