Skip to content

ext: Inconsistency of the last inum #2994

Open
@aapo

Description

@aapo

In ext4 (ext2 and ext3) there is some inconsistency of the last inum.

fallocate -l 10M image.dd
#mkfs.ext2 image.dd
#mkfs.ext3 image.dd
mkfs.ext4 image.dd

fsstat image.dd  | grep "Inode Range"  -B2
METADATA INFORMATION
--------------------------------------------
Inode Range: 1 - 2561
--

Group: 0:
  Inode Range: 1 - 1280
--

Group: 1:
  Inode Range: 1281 - 2560

So what is this inode 2561 (in Metadata inode range), which is not in any group?

And then istat and icat is behaving differently:

istat image.dd 2561
Invalid metadata address (ext2fs_dinode_load: address: 2561)

icat image.dd 2561

icat image.dd 2562
Metadata address too large for image (2561)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions