Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use SEEK_DATA/SEEK_HOLE to skip reading holes #6

Open
crass opened this issue Apr 4, 2024 · 0 comments
Open

Use SEEK_DATA/SEEK_HOLE to skip reading holes #6

crass opened this issue Apr 4, 2024 · 0 comments

Comments

@crass
Copy link

crass commented Apr 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant