genlfs.cf revision 1.3 1 1.3 jdc # $NetBSD: genlfs.cf,v 1.3 2015/08/16 10:58:54 jdc Exp $
2 1.1 eeh
3 1.1 eeh # Copyright (c) 2010 Eduardo Horvath.
4 1.1 eeh # All rights reserved.
5 1.1 eeh #
6 1.1 eeh # Redistribution and use in source and binary forms, with or without
7 1.1 eeh # modification, are permitted provided that the following conditions
8 1.1 eeh # are met:
9 1.1 eeh # 1. Redistributions of source code must retain the above copyright
10 1.1 eeh # notice, this list of conditions and the following disclaimer.
11 1.1 eeh # 2. Redistributions in binary form must reproduce the above copyright
12 1.1 eeh # notice, this list of conditions and the following disclaimer in the
13 1.1 eeh # documentation and/or other materials provided with the distribution.
14 1.1 eeh #
15 1.1 eeh # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 1.1 eeh # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 1.1 eeh # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 1.1 eeh # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 1.1 eeh # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 1.1 eeh # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 1.1 eeh # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 1.1 eeh # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 1.1 eeh # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 1.1 eeh # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 1.1 eeh #
26 1.1 eeh
27 1.1 eeh include <sys/param.h>
28 1.1 eeh include <sys/time.h>
29 1.1 eeh include <ufs/ufs/dinode.h>
30 1.1 eeh include <ufs/ufs/dir.h>
31 1.1 eeh include <sys/queue.h>
32 1.1 eeh include <sys/condvar.h>
33 1.1 eeh include <sys/mount.h>
34 1.1 eeh include <ufs/ufs/inode.h>
35 1.1 eeh include <ufs/lfs/lfs.h>
36 1.1 eeh
37 1.1 eeh #
38 1.1 eeh # lfs superblock
39 1.1 eeh #
40 1.1 eeh struct dlfs
41 1.1 eeh member lfs_magic dlfs_magic
42 1.1 eeh member lfs_version dlfs_version
43 1.1 eeh member lfs_bsize dlfs_bsize
44 1.1 eeh member lfs_ibsize dlfs_ibsize
45 1.1 eeh member lfs_bmask dlfs_bmask
46 1.1 eeh member lfs_ffmask dlfs_ffmask
47 1.1 eeh member lfs_bshift dlfs_bshift
48 1.1 eeh member lfs_ffshift dlfs_ffshift
49 1.1 eeh member lfs_fbshift dlfs_fbshift
50 1.1 eeh member lfs_fsbtodb dlfs_fsbtodb
51 1.1 eeh member lfs_ifile dlfs_ifile
52 1.1 eeh member lfs_ifpb dlfs_ifpb
53 1.1 eeh member lfs_cleansz dlfs_cleansz
54 1.1 eeh member lfs_segtabsz dlfs_segtabsz
55 1.1 eeh member lfs_idaddr dlfs_idaddr
56 1.1 eeh member lfs_inopb dlfs_inopb
57 1.1 eeh
58 1.1 eeh #
59 1.1 eeh # LFS v1 ifile
60 1.1 eeh #
61 1.1 eeh struct ifile_v1
62 1.1 eeh member if1_version if_version
63 1.1 eeh member if1_daddr if_daddr
64 1.1 eeh
65 1.1 eeh #
66 1.3 jdc # LFS v2 ifile32
67 1.1 eeh #
68 1.3 jdc struct ifile32
69 1.1 eeh member if2_version if_version
70 1.1 eeh member if2_daddr if_daddr
71 1.1 eeh
72 1.1 eeh #
73 1.2 hannken # LFS v1 dinode
74 1.1 eeh #
75 1.3 jdc struct lfs32_dinode
76 1.2 hannken member di_inumber di_inumber
77 1.1 eeh
78 1.1 eeh define lfs_magic_value LFS_MAGIC
79 1.1 eeh define lfs_unused_daddr LFS_UNUSED_DADDR
80