newfs.h revision 92717
192717Sphk/* 292717Sphk * Copyright (c) 1980, 1989, 1993 392717Sphk * The Regents of the University of California. All rights reserved. 492717Sphk * 592717Sphk * Redistribution and use in source and binary forms, with or without 692717Sphk * modification, are permitted provided that the following conditions 792717Sphk * are met: 892717Sphk * 1. Redistributions of source code must retain the above copyright 992717Sphk * notice, this list of conditions and the following disclaimer. 1092717Sphk * 2. Redistributions in binary form must reproduce the above copyright 1192717Sphk * notice, this list of conditions and the following disclaimer in the 1292717Sphk * documentation and/or other materials provided with the distribution. 1392717Sphk * 3. All advertising materials mentioning features or use of this software 1492717Sphk * must display the following acknowledgement: 1592717Sphk * This product includes software developed by the University of 1692717Sphk * California, Berkeley and its contributors. 1792717Sphk * 4. Neither the name of the University nor the names of its contributors 1892717Sphk * may be used to endorse or promote products derived from this software 1992717Sphk * without specific prior written permission. 2092717Sphk * 2192717Sphk * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2292717Sphk * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2392717Sphk * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2492717Sphk * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2592717Sphk * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2692717Sphk * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2792717Sphk * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2892717Sphk * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2992717Sphk * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3092717Sphk * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3192717Sphk * SUCH DAMAGE. 3292717Sphk * 3392717Sphk * $FreeBSD: head/sbin/newfs/newfs.h 92717 2002-03-19 20:01:38Z phk $ 3492717Sphk */ 3592717Sphk 3692717Sphk 3792717Sphk/* 3892717Sphk * variables set up by front end. 3992717Sphk */ 4092717Sphkextern int Nflag; /* run mkfs without writing file system */ 4192717Sphkextern int Oflag; /* format as an 4.3BSD file system */ 4292717Sphkextern int Uflag; /* enable soft updates for file system */ 4392717Sphkextern int fssize; /* file system size */ 4492717Sphkextern int ntracks; /* # tracks/cylinder */ 4592717Sphkextern int nsectors; /* # sectors/track */ 4692717Sphkextern int nphyssectors; /* # sectors/track including spares */ 4792717Sphkextern int secpercyl; /* sectors per cylinder */ 4892717Sphkextern int sectorsize; /* bytes/sector */ 4992717Sphkextern int realsectorsize; /* bytes/sector in hardware*/ 5092717Sphkextern int rpm; /* revolutions/minute of drive */ 5192717Sphkextern int interleave; /* hardware sector interleave */ 5292717Sphkextern int trackskew; /* sector 0 skew, per track */ 5392717Sphkextern int fsize; /* fragment size */ 5492717Sphkextern int bsize; /* block size */ 5592717Sphkextern int cpg; /* cylinders/cylinder group */ 5692717Sphkextern int cpgflg; /* cylinders/cylinder group flag was given */ 5792717Sphkextern int minfree; /* free space threshold */ 5892717Sphkextern int opt; /* optimization preference (space or time) */ 5992717Sphkextern int density; /* number of bytes per inode */ 6092717Sphkextern int maxcontig; /* max contiguous blocks to allocate */ 6192717Sphkextern int rotdelay; /* rotational delay between blocks */ 6292717Sphkextern int maxbpg; /* maximum blocks per file in a cyl group */ 6392717Sphkextern int nrpos; /* # of distinguished rotational positions */ 6492717Sphkextern int bbsize; /* boot block size */ 6592717Sphkextern int sbsize; /* superblock size */ 6692717Sphkextern int avgfilesize; /* expected average file size */ 6792717Sphkextern int avgfilesperdir; /* expected number of files per directory */ 6892717Sphk 69