Anonymous user
Ext2: Difference between revisions
→Inodes
[unchecked revision] | [unchecked revision] |
(→Inodes) |
|||
Line 335:
| 32 || 35 || 4 || Flags ([[#Inode_Flags|see below]])
|-
| 36 || 39 || 4 ||
|-
| 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
|-
| 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
|-
| 112 || 115 || 4 || Block address of fragment
|-
| 116 ||
|}
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 ||
|-
| 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:
====
{| {{Wikitable}}
|-
! Value
! Type Description
|-
| 0 || Unknown type
|-
| 1 || Regular file
|-
| 2 || Directory
|-
| 3 || Character device
|-
| 4 || Block device
|-
|
|-
| 6 || Socket
|-
| 7 || Symbolic link (soft link)
|}
|