ext2_dinode.h (251346) | ext2_dinode.h (251809) |
---|---|
1/*- 2 * Copyright (c) 2009 Aditya Sarawgi 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2009 Aditya Sarawgi 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/fs/ext2fs/ext2_dinode.h 251346 2013-06-03 20:33:05Z pfg $ | 26 * $FreeBSD: head/sys/fs/ext2fs/ext2_dinode.h 251809 2013-06-16 16:10:45Z pfg $ |
27 */ 28 29#ifndef _FS_EXT2FS_EXT2_DINODE_H_ 30#define _FS_EXT2FS_EXT2_DINODE_H_ 31 32/* 33 * Special inode numbers 34 * The root inode is the root of the file system. Inode 0 can't be used for --- 41 unchanged lines hidden (view full) --- 76#define EXT3_EPOCH_BITS 2 77#define EXT3_EPOCH_MASK ((1 << EXT3_EPOCH_BITS) - 1) 78#define EXT3_NSEC_MASK (~0UL << EXT3_EPOCH_BITS) 79 80#define E2DI_HAS_XTIME(ip) (EXT2_HAS_RO_COMPAT_FEATURE(ip->i_e2fs, \ 81 EXT2F_ROCOMPAT_EXTRA_ISIZE)) 82 83/* | 27 */ 28 29#ifndef _FS_EXT2FS_EXT2_DINODE_H_ 30#define _FS_EXT2FS_EXT2_DINODE_H_ 31 32/* 33 * Special inode numbers 34 * The root inode is the root of the file system. Inode 0 can't be used for --- 41 unchanged lines hidden (view full) --- 76#define EXT3_EPOCH_BITS 2 77#define EXT3_EPOCH_MASK ((1 << EXT3_EPOCH_BITS) - 1) 78#define EXT3_NSEC_MASK (~0UL << EXT3_EPOCH_BITS) 79 80#define E2DI_HAS_XTIME(ip) (EXT2_HAS_RO_COMPAT_FEATURE(ip->i_e2fs, \ 81 EXT2F_ROCOMPAT_EXTRA_ISIZE)) 82 83/* |
84 * Constants relative to the data blocks 85 */ 86#define EXT2_NDIR_BLOCKS 12 87#define EXT2_IND_BLOCK EXT2_NDIR_BLOCKS 88#define EXT2_DIND_BLOCK (EXT2_IND_BLOCK + 1) 89#define EXT2_TIND_BLOCK (EXT2_DIND_BLOCK + 1) 90#define EXT2_N_BLOCKS (EXT2_TIND_BLOCK + 1) 91#define EXT2_MAXSYMLINKLEN (EXT2_N_BLOCKS * sizeof(uint32_t)) 92 93/* |
|
84 * Structure of an inode on the disk 85 */ 86struct ext2fs_dinode { 87 uint16_t e2di_mode; /* 0: IFMT, permissions; see below. */ 88 uint16_t e2di_uid; /* 2: Owner UID */ 89 uint32_t e2di_size; /* 4: Size (in bytes) */ 90 uint32_t e2di_atime; /* 8: Access time */ 91 uint32_t e2di_ctime; /* 12: Change time */ --- 30 unchanged lines hidden --- | 94 * Structure of an inode on the disk 95 */ 96struct ext2fs_dinode { 97 uint16_t e2di_mode; /* 0: IFMT, permissions; see below. */ 98 uint16_t e2di_uid; /* 2: Owner UID */ 99 uint32_t e2di_size; /* 4: Size (in bytes) */ 100 uint32_t e2di_atime; /* 8: Access time */ 101 uint32_t e2di_ctime; /* 12: Change time */ --- 30 unchanged lines hidden --- |