Skip to content

Use fcntl(F_FLUSHFSYNC) on OSX and make FlushAsync() to behave like Flush(false) on Unix - #44443

Merged
4 commits merged into
dotnet:masterfrom
jozkee:flush_fullfsync
Nov 11, 2020
Merged

4 commits merged into
dotnet:masterfrom
jozkee:flush_fullfsync

Conversation

@jozkee

@jozkee jozkee commented Nov 10, 2020

Copy link
Copy Markdown
Member

Fixes #28444

@jozkee jozkee added this to the 6.0.0 milestone Nov 10, 2020
@jozkee jozkee self-assigned this Nov 10, 2020
@jozkee jozkee changed the title Use fcntl(F_FLUSHFSYNC) on OSX and make FlushAsync to behave like Flush on Unix Use fcntl(F_FLUSHFSYNC) on OSX and make FlushAsync() to behave like Flush(false) on Unix Nov 10, 2020
@jozkee
jozkee requested a review from marek-safar as a code owner November 10, 2020 02:08
Comment thread src/mono/cmake/config.h.in Resolved

@stephentoub stephentoub left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than my FlushAsyncInternal comment, LGTM. Thanks.

@ghost

ghost commented Nov 11, 2020

Copy link
Copy Markdown

Hello @jozkee!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost
ghost merged commit 4a8cddb into dotnet:master Nov 11, 2020
@jozkee
jozkee deleted the flush_fullfsync branch November 11, 2020 23:51
@ghost ghost locked as resolved and limited conversation to collaborators Dec 12, 2020
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FileStream.Flush(true) doesn't flush device buffer on macOS, while it does so on Windows

3 participants