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