newfs.h revision 140603
192717Sphk/* 298542Smckusick * Copyright (c) 2002 Networks Associates Technology, Inc. 398542Smckusick * All rights reserved. 498542Smckusick * 598542Smckusick * This software was developed for the FreeBSD Project by Marshall 698542Smckusick * Kirk McKusick and Network Associates Laboratories, the Security 798542Smckusick * Research Division of Network Associates, Inc. under DARPA/SPAWAR 898542Smckusick * contract N66001-01-C-8035 ("CBOSS"), as part of the DARPA CHATS 9110884Smckusick * research program. 1098542Smckusick * 1192717Sphk * Copyright (c) 1980, 1989, 1993 1292717Sphk * The Regents of the University of California. All rights reserved. 1392717Sphk * 1492717Sphk * Redistribution and use in source and binary forms, with or without 1592717Sphk * modification, are permitted provided that the following conditions 1692717Sphk * are met: 1792717Sphk * 1. Redistributions of source code must retain the above copyright 1892717Sphk * notice, this list of conditions and the following disclaimer. 1992717Sphk * 2. Redistributions in binary form must reproduce the above copyright 2092717Sphk * notice, this list of conditions and the following disclaimer in the 2192717Sphk * documentation and/or other materials provided with the distribution. 2292717Sphk * 4. Neither the name of the University nor the names of its contributors 2392717Sphk * may be used to endorse or promote products derived from this software 2492717Sphk * without specific prior written permission. 2592717Sphk * 2692717Sphk * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2792717Sphk * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2892717Sphk * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2992717Sphk * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 3092717Sphk * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3192717Sphk * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3292717Sphk * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3392717Sphk * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3492717Sphk * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3592717Sphk * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3692717Sphk * SUCH DAMAGE. 3792717Sphk * 3892717Sphk * $FreeBSD: head/sbin/newfs/newfs.h 140603 2005-01-21 22:20:25Z wes $ 3992717Sphk */ 4092717Sphk 41110671Sjmallett#include <libufs.h> 4292717Sphk 4392717Sphk/* 4492717Sphk * variables set up by front end. 4592717Sphk */ 46110174Sgordonextern int Lflag; /* add a volume label */ 47102231Strhodesextern int Nflag; /* run mkfs without writing file system */ 48102231Strhodesextern int Oflag; /* build UFS1 format file system */ 4992722Sphkextern int Rflag; /* regression test */ 50102231Strhodesextern int Uflag; /* enable soft updates for file system */ 51122785Swesextern int Eflag; /* exit as if error, for testing */ 52126254Srwatsonextern int lflag; /* enable multilabel MAC for file system */ 53140603Swesextern int nflag; /* do not create .snap directory */ 5498542Smckusickextern quad_t fssize; /* file system size */ 5598542Smckusickextern int sectorsize; /* bytes/sector */ 5692717Sphkextern int realsectorsize; /* bytes/sector in hardware*/ 5792717Sphkextern int fsize; /* fragment size */ 5892717Sphkextern int bsize; /* block size */ 5998542Smckusickextern int maxbsize; /* maximum clustering */ 6098542Smckusickextern int maxblkspercg; /* maximum blocks per cylinder group */ 6192717Sphkextern int minfree; /* free space threshold */ 6292717Sphkextern int opt; /* optimization preference (space or time) */ 6392717Sphkextern int density; /* number of bytes per inode */ 6492717Sphkextern int maxcontig; /* max contiguous blocks to allocate */ 6592717Sphkextern int maxbpg; /* maximum blocks per file in a cyl group */ 6692717Sphkextern int avgfilesize; /* expected average file size */ 6792717Sphkextern int avgfilesperdir; /* expected number of files per directory */ 68110174Sgordonextern u_char *volumelabel; /* volume label for filesystem */ 69110671Sjmallettextern struct uufsd disk; /* libufs disk structure */ 7095357Sphk 7195357Sphkvoid mkfs (struct partition *, char *); 72