-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
bpo-39640: os.fdatasync: fall back to fsync() on POSIX systems withou… #18516
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
Conversation
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). CLA MissingOur records indicate the following people have not signed the CLA: For legal reasons we need all the people listed to sign the CLA before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. If you have recently signed the CLA, please wait at least one business day You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
Codecov Report
@@ Coverage Diff @@
## master #18516 +/- ##
===========================================
+ Coverage 82.11% 83.20% +1.08%
===========================================
Files 1955 1571 -384
Lines 588856 414730 -174126
Branches 44427 44456 +29
===========================================
- Hits 483559 345065 -138494
+ Misses 95647 60019 -35628
+ Partials 9650 9646 -4
Continue to review full report at Codecov.
|
|
@gmelikov this is being flagged as unsigned because you have changes made to the PR by a user named "gmelikov-mcs" which has not signed the CLA. |
bba3ad7 to
77192e3
Compare
|
@brettcannon ah, my bad! Thank you, fixed and rebased. |
…t fdatasync() support POSIX fdatasync() is similar to fsync() but it tries not to sync non-needed metadata. If POSIX OS doesn't have it - it's safe to use fsync() (If we need to sync data to disk - we have to use one of these functions). This change helps to run code with fdatasync() on MacOS without fallbacks in Python code. Signed-off-by: George Melikov <mail@gmelikov.ru>
|
Rebased and ready to review. |
|
I'm not familiar with MacOS, so I don't feel comfortable merging this – especially without tests. Tagging Ronald, who is working on macOS and might be or know the right person to review this. |
|
Closing as @gpshead rejected https://bugs.python.org/issue39640 on 2022-03-20:
|

…t fdatasync() support
POSIX fdatasync() is similar to fsync() but it tries not to sync non-needed
metadata. If POSIX OS doesn't have it - it's safe to use fsync()
(If we need to sync data to disk - we have to use one of these functions).
This change helps to run code with fdatasync() on MacOS without fallbacks
in Python code.
That it's a usual practice:
Signed-off-by: George Melikov mail@gmelikov.ru
https://bugs.python.org/issue39640