Skip to content

Use SEEK_DATA/SEEK_HOLE to skip reading holes #6

@crass

Description

@crass

For files that have large holes in them, it makes little sense to read those holes knowing they will be zero-filled. For instance, when using sparse mode, ddpt could seek to the end of a hole in the input with SEEK_DATA. Of course, the user could figure out the data blocks themself and use a scatter-gather list to only read the data. But it would be nice to have it be transparent.

It looks like similar functionality could be implemented for SCSI devices via the SCSI GET LBA STATUS command to see what blocks are mapped.

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