1/*- 2 * Copyright (c) 1982, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 18 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)inode.h 8.9 (Berkeley) 5/14/95 |
35 * $FreeBSD: head/sys/fs/ext2fs/inode.h 254283 2013-08-13 15:40:43Z pfg $ |
36 */ 37 38#ifndef _FS_EXT2FS_INODE_H_ 39#define _FS_EXT2FS_INODE_H_ 40 41#include <sys/param.h> 42#include <sys/lock.h> 43#include <sys/mutex.h> --- 5 unchanged lines hidden (view full) --- 49 * This must agree with the definition in <ufs/ufs/dir.h>. 50 */ 51#define doff_t int32_t 52 53#define NDADDR 12 /* Direct addresses in inode. */ 54#define NIADDR 3 /* Indirect addresses in inode. */ 55 56/* |
57 * The size of physical and logical block numbers in EXT2FS. |
58 */ |
59typedef uint32_t e2fs_daddr_t; 60typedef int64_t e2fs_lbn_t; 61typedef int64_t e4fs_daddr_t; |
62 63/* 64 * The inode is used to describe each active (or recently active) file in the 65 * EXT2FS filesystem. It is composed of two types of information. The first 66 * part is the information that is needed only while the file is active (such 67 * as the identity of the file and linkage to speed its lookup). The second 68 * part is the permanent meta-data associated with the file which is read in 69 * from the permanent dinode from long term storage when the file becomes --- 112 unchanged lines hidden --- |