Deleted Added
full compact
ext2_dinode.h (217703) ext2_dinode.h (221126)
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 217703 2011-01-21 22:00:40Z jhb $
26 * $FreeBSD: head/sys/fs/ext2fs/ext2_dinode.h 221126 2011-04-27 18:15:34Z jhb $
27 */
28
29#ifndef _FS_EXT2FS_EXT2_DINODE_H_
30#define _FS_EXT2FS_EXT2_DINODE_H_
31
32#define e2di_size_high e2di_dacl
33
34/*

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

61#define EXT2_NODUMP 0x00000040 /* do not dump file */
62#define EXT2_NOATIME 0x00000080 /* do not update atime */
63
64
65/*
66 * Structure of an inode on the disk
67 */
68struct ext2fs_dinode {
27 */
28
29#ifndef _FS_EXT2FS_EXT2_DINODE_H_
30#define _FS_EXT2FS_EXT2_DINODE_H_
31
32#define e2di_size_high e2di_dacl
33
34/*

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

61#define EXT2_NODUMP 0x00000040 /* do not dump file */
62#define EXT2_NOATIME 0x00000080 /* do not update atime */
63
64
65/*
66 * Structure of an inode on the disk
67 */
68struct ext2fs_dinode {
69 u_int16_t e2di_mode; /* 0: IFMT, permissions; see below. */
70 u_int16_t e2di_uid; /* 2: Owner UID */
71 u_int32_t e2di_size; /* 4: Size (in bytes) */
72 u_int32_t e2di_atime; /* 8: Access time */
73 u_int32_t e2di_ctime; /* 12: Create time */
74 u_int32_t e2di_mtime; /* 16: Modification time */
75 u_int32_t e2di_dtime; /* 20: Deletion time */
76 u_int16_t e2di_gid; /* 24: Owner GID */
77 u_int16_t e2di_nlink; /* 26: File link count */
78 u_int32_t e2di_nblock; /* 28: Blocks count */
79 u_int32_t e2di_flags; /* 32: Status flags (chflags) */
80 u_int32_t e2di_linux_reserved1; /* 36 */
81 u_int32_t e2di_blocks[EXT2_N_BLOCKS]; /* 40: disk blocks */
82 u_int32_t e2di_gen; /* 100: generation number */
83 u_int32_t e2di_facl; /* 104: file ACL (not implemented) */
84 u_int32_t e2di_dacl; /* 108: dir ACL (not implemented) */
85 u_int32_t e2di_faddr; /* 112: fragment address */
86 u_int8_t e2di_nfrag; /* 116: fragment number */
87 u_int8_t e2di_fsize; /* 117: fragment size */
88 u_int16_t e2di_linux_reserved2; /* 118 */
89 u_int16_t e2di_uid_high; /* 120: Owner UID top 16 bits */
90 u_int16_t e2di_gid_high; /* 122: Owner GID top 16 bits */
91 u_int32_t e2di_linux_reserved3; /* 124 */
69 uint16_t e2di_mode; /* 0: IFMT, permissions; see below. */
70 uint16_t e2di_uid; /* 2: Owner UID */
71 uint32_t e2di_size; /* 4: Size (in bytes) */
72 uint32_t e2di_atime; /* 8: Access time */
73 uint32_t e2di_ctime; /* 12: Create time */
74 uint32_t e2di_mtime; /* 16: Modification time */
75 uint32_t e2di_dtime; /* 20: Deletion time */
76 uint16_t e2di_gid; /* 24: Owner GID */
77 uint16_t e2di_nlink; /* 26: File link count */
78 uint32_t e2di_nblock; /* 28: Blocks count */
79 uint32_t e2di_flags; /* 32: Status flags (chflags) */
80 uint32_t e2di_linux_reserved1; /* 36 */
81 uint32_t e2di_blocks[EXT2_N_BLOCKS]; /* 40: disk blocks */
82 uint32_t e2di_gen; /* 100: generation number */
83 uint32_t e2di_facl; /* 104: file ACL (not implemented) */
84 uint32_t e2di_dacl; /* 108: dir ACL (not implemented) */
85 uint32_t e2di_faddr; /* 112: fragment address */
86 uint8_t e2di_nfrag; /* 116: fragment number */
87 uint8_t e2di_fsize; /* 117: fragment size */
88 uint16_t e2di_linux_reserved2; /* 118 */
89 uint16_t e2di_uid_high; /* 120: Owner UID top 16 bits */
90 uint16_t e2di_gid_high; /* 122: Owner GID top 16 bits */
91 uint32_t e2di_linux_reserved3; /* 124 */
92};
93
94#endif /* !_FS_EXT2FS_EXT2_DINODE_H_ */
95
92};
93
94#endif /* !_FS_EXT2FS_EXT2_DINODE_H_ */
95