Ext2: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
Line 335: | Line 335: | ||
| 32 || 35 || 4 || Flags ([[#Inode_Flags|see below]]) |
| 32 || 35 || 4 || Flags ([[#Inode_Flags|see below]]) |
||
|- |
|- |
||
| 36 || 39 || 4 || |
| 36 || 39 || 4 || [[#OS_Specific_Value_1|Operating System Specific value #1]] |
||
|- |
|- |
||
| 40 || 43 || 4 || Direct Block Pointer 0 |
| 40 || 43 || 4 || Direct Block Pointer 0 |
||
Line 365: | Line 365: | ||
| 92 || 95 || 4 || Doubly Indirect Block Pointer (Points to a block that is a list of block pointers to Singly Indirect Blocks) |
| 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 |
| 96 || 99 || 4 || Triply Indirect Block Pointer (Points to a block that is a list of block pointers to Doubly Indirect Blocks) |
||
|- |
|- |
||
| 100 || 103 || 4 || Generation number (Primarily used for NFS) |
| 100 || 103 || 4 || Generation number (Primarily used for NFS) |
||
|- |
|- |
||
| 104 || 107 || 4 || Extended attribute block (File ACL) |
| 104 || 107 || 4 || In Ext2 version 0, this field is reserved. In version >= 1, Extended attribute block (File ACL). |
||
|- |
|- |
||
| 108 || 111 || 4 || Upper 32 bits of size |
| 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 if it's a directory |
||
|- |
|- |
||
| 112 || 115 || 4 || Block address of fragment |
| 112 || 115 || 4 || Block address of fragment |
||
|- |
|- |
||
| 116 || |
| 116 || 127 || 12 || [[#OS_Specific_Value_2|Operating System Specific Value #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: | Line 461: | ||
|- |
|- |
||
| 0x00040000 || Journal file data |
| 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 === |
=== Directories === |
||
Line 489: | Line 560: | ||
| 0 || 3 || 4 || Inode |
| 0 || 3 || 4 || Inode |
||
|- |
|- |
||
| 4 || 5 || 2 || |
| 4 || 5 || 2 || Total size of this entry (Including all subfields) |
||
|- |
|- |
||
| 6 || 6 || 1 || Name Length least-significant 8 bits |
| 6 || 6 || 1 || Name Length least-significant 8 bits |
||
|- |
|- |
||
| 7 || 7 || 1 || Type (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) |
| 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 |
| 8 || 8+N-1 || N || Name characters |
||
Line 499: | Line 570: | ||
==== |
==== Directory Entry Type Indicators ==== |
||
{| {{Wikitable}} |
{| {{Wikitable}} |
||
|- |
|- |
||
! Description |
|||
! Value |
! 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 |
|||
|- |
|- |
||
| |
| 5 || FIFO |
||
|- |
|- |
||
| 6 || Socket |
|||
|EXT2_FT_SYMLINK ||7 |
|||
|- |
|- |
||
| 7 || Symbolic link (soft link) |
|||
|EXT2_FT_MAX ||8 |
|||
|} |
|} |
||