Skip to content

Volume offset does not work #6

@ElementW

Description

@ElementW

Trying to use a non-zero offset on a Volume completely fails as Ext4Struct refers to the volume's backing stream directly, bypassing the whole point of a Volume being a file-like object, resulting in non-offset reads.

self.volume.stream.seek(self.offset)
data = self.volume.stream.read(sizeof(self))

In my specific case, I end up with ext4.struct.MagicError: <ext4.superblock.Superblock object at 0x71660e6901d0> magic bytes do not match! expected=0xEF53, actual=0x6C, where 0x6C is the first UCS-2 character of "loader", a partition name in my GPT disk image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions