newfs.h revision 110174
1/*
2 * Copyright (c) 2002 Networks Associates Technology, Inc.
3 * All rights reserved.
4 *
5 * This software was developed for the FreeBSD Project by Marshall
6 * Kirk McKusick and Network Associates Laboratories, the Security
7 * Research Division of Network Associates, Inc. under DARPA/SPAWAR
8 * contract N66001-01-C-8035 ("CBOSS"), as part of the DARPA CHATS
9 * research program
10 *
11 * Copyright (c) 1982, 1989, 1993
12 *	The Regents of the University of California.  All rights reserved.
13 * (c) UNIX System Laboratories, Inc.
14 * Copyright (c) 1980, 1989, 1993
15 *	The Regents of the University of California.  All rights reserved.
16 *
17 * Redistribution and use in source and binary forms, with or without
18 * modification, are permitted provided that the following conditions
19 * are met:
20 * 1. Redistributions of source code must retain the above copyright
21 *    notice, this list of conditions and the following disclaimer.
22 * 2. Redistributions in binary form must reproduce the above copyright
23 *    notice, this list of conditions and the following disclaimer in the
24 *    documentation and/or other materials provided with the distribution.
25 * 3. All advertising materials mentioning features or use of this software
26 *    must display the following acknowledgement:
27 *	This product includes software developed by the University of
28 *	California, Berkeley and its contributors.
29 * 4. Neither the name of the University nor the names of its contributors
30 *    may be used to endorse or promote products derived from this software
31 *    without specific prior written permission.
32 *
33 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
34 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
35 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
36 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
37 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
38 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
39 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
40 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
41 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
42 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
43 * SUCH DAMAGE.
44 *
45 * $FreeBSD: head/sbin/newfs/newfs.h 110174 2003-02-01 04:17:10Z gordon $
46 */
47
48
49/*
50 * variables set up by front end.
51 */
52extern int	Lflag;		/* add a volume label */
53extern int	Nflag;		/* run mkfs without writing file system */
54extern int	Oflag;		/* build UFS1 format file system */
55extern int	Rflag;		/* regression test */
56extern int	Uflag;		/* enable soft updates for file system */
57extern quad_t	fssize;		/* file system size */
58extern int	sectorsize;	/* bytes/sector */
59extern int	realsectorsize;	/* bytes/sector in hardware*/
60extern int	fsize;		/* fragment size */
61extern int	bsize;		/* block size */
62extern int	maxbsize;	/* maximum clustering */
63extern int	maxblkspercg;	/* maximum blocks per cylinder group */
64extern int	minfree;	/* free space threshold */
65extern int	opt;		/* optimization preference (space or time) */
66extern int	density;	/* number of bytes per inode */
67extern int	maxcontig;	/* max contiguous blocks to allocate */
68extern int	maxbpg;		/* maximum blocks per file in a cyl group */
69extern int	avgfilesize;	/* expected average file size */
70extern int	avgfilesperdir;	/* expected number of files per directory */
71extern int	fso;		/* filedescriptor to device */
72extern u_char	*volumelabel;	/* volume label for filesystem */
73
74void mkfs (struct partition *, char *);
75