Deleted Added
full compact
ext2_dinode.h (245952) ext2_dinode.h (251344)
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 245952 2013-01-26 22:08:21Z pfg $
26 * $FreeBSD: head/sys/fs/ext2fs/ext2_dinode.h 251344 2013-06-03 20:02: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

--- 37 unchanged lines hidden (view full) ---

72/*
73 * Definitions for nanosecond timestamps.
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
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

--- 37 unchanged lines hidden (view full) ---

72/*
73 * Definitions for nanosecond timestamps.
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, EXT2F_ROCOMPAT_EXTRA_ISIZE))
80#define E2DI_HAS_XTIME(ip) (EXT2_HAS_RO_COMPAT_FEATURE(ip->i_e2fs, \
81 EXT2F_ROCOMPAT_EXTRA_ISIZE))
81
82/*
83 * Structure of an inode on the disk
84 */
85struct ext2fs_dinode {
86 uint16_t e2di_mode; /* 0: IFMT, permissions; see below. */
87 uint16_t e2di_uid; /* 2: Owner UID */
88 uint32_t e2di_size; /* 4: Size (in bytes) */

--- 32 unchanged lines hidden ---
82
83/*
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) */

--- 32 unchanged lines hidden ---