Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
File preallocationSize: align Windows and Unix behavior. #59338
File preallocationSize: align Windows and Unix behavior. #59338
Changes from 5 commits
3a591dd
3245d91
ff29b43
c2aef89
d3db729
a5fde03
31de574
ec6e98f
a62b89c
fc75560
a58c0e2
77d1978
7decfba
7482a40
3ea664a
9f4e556
26282f3
ec9412b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the verdict on testing coverage with all of these tests being updated to not pass in a preallocation size?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage is good now.
I refactored tests to follow the pattern that was already used by adding an overload of
CreateFileStream
to the base classFileStream_ctor_options
that accepts apreallocationSize
and add thepreallocationSize
related tests in this class. The derived classes use it from different public APIs.