1 # $NetBSD: genfth.cf,v 1.5 2005/12/11 12:19:08 christos Exp $
4 # Copyright (c) 1997 The NetBSD Foundation, Inc.
7 # This code is derived from software contributed to The NetBSD Foundation
10 # Redistribution and use in source and binary forms, with or without
11 # modification, are permitted provided that the following conditions
13 # 1. Redistributions of source code must retain the above copyright
14 # notice, this list of conditions and the following disclaimer.
15 # 2. Redistributions in binary form must reproduce the above copyright
16 # notice, this list of conditions and the following disclaimer in the
17 # documentation and/or other materials provided with the distribution.
19 # THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 # POSSIBILITY OF SUCH DAMAGE.
31 # Copyright (c) 1992, 1993
32 # The Regents of the University of California. All rights reserved.
34 # This software was developed by the Computer Systems Engineering group
35 # at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
36 # contributed to Berkeley.
38 # All advertising materials mentioning features or use of this software
39 # must display the following acknowledgement:
40 # This product includes software developed by the University of
41 # California, Lawrence Berkeley Laboratory.
43 # Redistribution and use in source and binary forms, with or without
44 # modification, are permitted provided that the following conditions
46 # 1. Redistributions of source code must retain the above copyright
47 # notice, this list of conditions and the following disclaimer.
48 # 2. Redistributions in binary form must reproduce the above copyright
49 # notice, this list of conditions and the following disclaimer in the
50 # documentation and/or other materials provided with the distribution.
51 # 3. All advertising materials mentioning features or use of this software
52 # must display the following acknowledgement:
53 # This product includes software developed by the University of
54 # California, Berkeley and its contributors.
55 # 4. Neither the name of the University nor the names of its contributors
56 # may be used to endorse or promote products derived from this software
57 # without specific prior written permission.
59 # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
60 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
61 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
62 # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
63 # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
64 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
65 # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
66 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
67 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
68 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
71 # @(#)genassym.c 8.1 (Berkeley) 6/11/93
76 include <ufs/ufs/dinode.h>
77 include <ufs/ufs/dir.h>
78 include <ufs/ffs/fs.h>
79 include <dev/raidframe/raidframevar.h>
82 # ufs sizing constants
84 define dev_bsize DEV_BSIZE
85 define maxbsize MAXBSIZE
87 define sbsize SBLOCKSIZE
89 define sboff SBLOCK_UFS1
91 # XXX: Will not work for UFS2!
92 define sblock SBLOCK_UFS1
95 define rf_protected RF_PROTECTED_SECTORS
105 member fs_old_interleave
106 member fs_old_postblformat
108 member fs_old_inodefmt
109 member fs_maxfilesize
120 member fs_old_cgoffset
129 member fs_maxsymlinklen
146 #member d_type # notused
150 define fs_magic_value FS_UFS1_MAGIC
151 define fs_42postblfmt FS_42POSTBLFMT
152 define fs_44inodefmt FS_44INODEFMT
155 define rootino ROOTINO