Ext2: Difference between revisions

1,404 bytes added ,  13 years ago
[unchecked revision][unchecked revision]
Line 335:
| 32 || 35 || 4 || Flags ([[#Inode_Flags|see below]])
|-
| 36 || 39 || 4 || (Unused)[[#OS_Specific_Value_1|Operating System Specific value #1]]
|-
| 40 || 43 || 4 || Direct Block Pointer 0
Line 365:
| 92 || 95 || 4 || Doubly Indirect Block Pointer (Points to a block that is a list of block pointers to Singly Indirect Blocks)
|-
| 96 || 99 || 4 || Triply Indirect Block Pointer (Points to a block that is a list of block poitnerspointers to Doubly Indirect Blocks)
|-
| 100 || 103 || 4 || Generation number (Primarily used for NFS)
|-
| 104 || 107 || 4 || In Ext2 version 0, this field is reserved. In version >= 1, Extended attribute block (File ACL).
|-
| 108 || 111 || 4 || In Ext2 version 0, this field is reserved. In version >= 1, Upper 32 bits of file size /(if feature bit set) if it's a file, Directory ACL Yesif it's a /directory
|-
| 112 || 115 || 4 || Block address of fragment
|-
| 116 || 116127 || 112 || Fragment[[#OS_Specific_Value_2|Operating System indexSpecific inValue block#2]]
|-
| 117 || 117 || 1 || Fragment size
|-
| 118 || 119 || 2 || (Unused)
|-
| 120 || 121 || 2 || Upper 16 bits of user ID
|-
| 122 || 123 || 2 || Upper 16 bits of group ID
|-
| 124 || 127 || 4 || (Unused)
|}
 
Line 471 ⟶ 461:
|-
| 0x00040000 || Journal file data
|}
==== OS Specific Value 1 ====
{| {{Wikitable}}
! Operating
System
! How they use this field
|-
| Linux || (reserved)
|-
| HURD || "translator"?
|-
| MASIX || (reserved)
|}
==== OS Specific Value 2 ====
{| {{Wikitable}}
! Operating
System
! How they use this field
|-
| Linux ||
{| {{Wikitable}}
! Starting
Byte
! Ending
Byte
! Size
in Bytes
! Field Description
|-
| 116 || 116 || 1 || Fragment number
|-
| 117 || 117 || 1 || Fragment size
|-
| 118 || 119 || 2 || (reserved)
|-
| 120 || 121 || 2 || High 16 bits of 32-bit User ID
|-
| 122 || 123 || 2 || High 16 bits of 32-bit Group ID
|-
| 124 || 127 || 4 || (reserved)
|}
|-
| HURD ||
{| {{Wikitable}}
! Starting
Byte
! Ending
Byte
! Size
in Bytes
! Field Description
|-
| 116 || 116 || 1 || Fragment number
|-
| 117 || 117 || 1 || Fragment size
|-
| 118 || 119 || 2 || High 16 bits of 32-bit "Type and Permissions" field
|-
| 120 || 121 || 2 || High 16 bits of 32-bit User ID
|-
| 122 || 123 || 2 || High 16 bits of 32-bit Group ID
|-
| 124 || 127 || 4 || User ID of author (if == 0xFFFFFFFF, the normal User ID will be used)
|}
|-
| MASIX ||
{| {{Wikitable}}
! Starting
Byte
! Ending
Byte
! Size
in Bytes
! Field Description
|-
| 116 || 116 || 1 || Fragment number
|-
| 117 || 117 || 1 || Fragment size
|-
| 118 || 127 || X || (reserved)
|}
|}
=== Directories ===
Line 489 ⟶ 560:
| 0 || 3 || 4 || Inode
|-
| 4 || 5 || 2 || RecordTotal Lengthsize (Willof getthis youentry to the(Including nextall recordsubfields)
|-
| 6 || 6 || 1 || Name Length least-significant 8 bits
|-
| 7 || 7 || 1 || [[#Directory_Entry_Type_Indicators|Type indicator]] (only if the feature bit for "directory entries have file type byte" is set, else this is the most-significant 8 bits of the Name Length)
|-
| 8 || 8+N-1 || N || Name characters
Line 499 ⟶ 570:
 
 
==== FiletypesDirectory Entry Type Indicators ====
 
{| {{Wikitable}}
|-
! Description
! Value
! Type Description
|-
| 0 || Unknown type
|EXT2_FT_UNKNOWN || 0
|-
|EXT2_FT_REG_FILE || 1
|-
| 1 || Regular file
|EXT2_FT_DIR || 2
|-
| 2 || Directory
|EXT2_FT_CHRDEV ||3
|-
| 3 || Character device
|EXT2_FT_BLKDEV ||4
|-
| 4 || Block device
|EXT2_FT_FIFO ||5
|-
|EXT2_FT_SOCK 5 ||6 FIFO
|-
| 6 || Socket
|EXT2_FT_SYMLINK ||7
|-
| 7 || Symbolic link (soft link)
|EXT2_FT_MAX ||8
|}
 
Anonymous user