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 27include <sys/param.h> 28include <sys/time.h> 29include <ufs/ufs/dinode.h> 30include <ufs/ufs/dir.h> 31include <sys/queue.h> 32include <sys/condvar.h> 33include <sys/mount.h> 34include <ufs/ufs/inode.h> 35include <ufs/lfs/lfs.h> 36 37# 38# lfs superblock 39# 40struct dlfs 41member lfs_magic dlfs_magic 42member lfs_version dlfs_version 43member lfs_bsize dlfs_bsize 44member lfs_ibsize dlfs_ibsize 45member lfs_bmask dlfs_bmask 46member lfs_ffmask dlfs_ffmask 47member lfs_bshift dlfs_bshift 48member lfs_ffshift dlfs_ffshift 49member lfs_fbshift dlfs_fbshift 50member lfs_fsbtodb dlfs_fsbtodb 51member lfs_ifile dlfs_ifile 52member lfs_ifpb dlfs_ifpb 53member lfs_cleansz dlfs_cleansz 54member lfs_segtabsz dlfs_segtabsz 55member lfs_idaddr dlfs_idaddr 56member lfs_inopb dlfs_inopb 57 58# 59# LFS v1 ifile 60# 61struct ifile_v1 62member if1_version if_version 63member if1_daddr if_daddr 64 65# 66# LFS v2 ifile 67# 68struct ifile32 69member if2_version if_version 70member if2_daddr if_daddr 71 72# 73# LFS v1/v2 dinode 74# 75struct lfs32_dinode 76member di_inumber di_inumber 77 78define lfs_magic_value LFS_MAGIC 79define lfs_unused_daddr LFS_UNUSED_DADDR 80