ext2_dinode.h (251809) | ext2_dinode.h (254260) |
---|---|
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 251809 2013-06-16 16:10:45Z pfg $ | 26 * $FreeBSD: head/sys/fs/ext2fs/ext2_dinode.h 254260 2013-08-12 21:34:48Z 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 --- 39 unchanged lines hidden (view full) --- 74 * Ext3 inode versioning, 2006-12-13. 75 */ 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)) | 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 --- 39 unchanged lines hidden (view full) --- 74 * Ext3 inode versioning, 2006-12-13. 75 */ 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#define E2DI_HAS_HUGE_FILE(ip) (EXT2_HAS_RO_COMPAT_FEATURE(ip->i_e2fs, \ 83 EXT2F_ROCOMPAT_HUGE_FILE)) |
|
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) --- 42 unchanged lines hidden --- | 84 85/* 86 * Constants relative to the data blocks 87 */ 88#define EXT2_NDIR_BLOCKS 12 89#define EXT2_IND_BLOCK EXT2_NDIR_BLOCKS 90#define EXT2_DIND_BLOCK (EXT2_IND_BLOCK + 1) 91#define EXT2_TIND_BLOCK (EXT2_DIND_BLOCK + 1) --- 42 unchanged lines hidden --- |