-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
sync: Reset O_NONBLOCK flag after file validation to match GNU behavior #9437
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
base: main
Are you sure you want to change the base?
Conversation
9ac5413 to
75a3e0c
Compare
|
GNU testsuite comparison: |
75a3e0c to
05612a4
Compare
|
GNU testsuite comparison: |
|
Could you please add a test for this? |
05612a4 to
6840348
Compare
|
GNU testsuite comparison: |
83f162c to
e9622ed
Compare
e9622ed to
3577f24
Compare
CodSpeed Performance ReportMerging #9437 will degrade performances by 2.34%Comparing Summary
Benchmarks breakdown
Footnotes
|
|
GNU testsuite comparison: |
2cd26a2 to
e1c9873
Compare
|
GNU testsuite comparison: |
e1c9873 to
3577f24
Compare
|
GNU testsuite comparison: |
This PR adds proper flag reset logic to the
syncutility to align with GNU coreutils implementation.Changes
O_NONBLOCKflag before callingsyncfs()andfdatasync()fcntl,FcntlArg,OFlag, andAsRawFdThe implementation ensures proper handling of non-blocking file descriptors before performing synchronization operations.
https://www.gnu.org/software/coreutils/manual/html_node/sync-invocation.html