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

Check regular file for sparse support after opening #4353

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

afq984
Copy link

@afq984 afq984 commented Mar 28, 2025

The doc for --sparse says "default: enabled when output is into a file",
however it only works when the output file already exists.

A regular file may be created by the open call.
Checking after opening allows sparseFileSupport even if dstFileName does not already exist.

A regular file may be created by the open call.
Checking after opening allows sparseFileSupport even
if dstFileName does not already exist.
@Cyan4973
Copy link
Contributor

Great fix,

it also shows that we lost this capability at some point
due to an inability to test it in CI.

We should consider writing a test specifically validating sparse file support.

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

Successfully merging this pull request may close these issues.

None yet

3 participants