Skip to content

work around linux not honoring write_at for O_APPEND files #143166

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

the8472
Copy link
Member

@the8472 the8472 commented Jun 28, 2025

the workaround only applies on kernels >= 6.9

fixes #140867

@rustbot
Copy link
Collaborator

rustbot commented Jun 28, 2025

r? @thomcc

rustbot has assigned @thomcc.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added O-unix Operating system: Unix-like S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Jun 28, 2025
@rust-log-analyzer

This comment has been minimized.

@the8472 the8472 force-pushed the fix-write-at-append branch from b6ebbf6 to 8b87324 Compare June 29, 2025 14:48
@rust-log-analyzer
Copy link
Collaborator

The job mingw-check-2 failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
failures:

---- fs::tests::file_test_append_write_at stdout ----

thread 'fs::tests::file_test_append_write_at' panicked at library/std/src/fs/tests.rs:507:5:
assertion `left == right` failed
  left: [105, 116, 39, 115, 32, 110, 111, 116, 32, 119, 111, 114, 107, 105, 110, 103, 33, 32, 32, 32]
 right: [105, 116, 39, 115, 32, 32, 32, 32, 32, 119, 111, 114, 107, 105, 110, 103, 33]

---- os::unix::fs::tests::write_vectored_at stdout ----

thread 'os::unix::fs::tests::write_vectored_at' panicked at library/std/src/os/unix/fs/tests.rs:57:5:
assertion `left == right` failed
  left: [112, 119, 114, 105, 116, 101, 118, 32, 105, 115, 32, 110, 111, 116, 32, 119, 111, 114, 107, 105, 110, 103, 33, 32, 32, 32, 32, 103, 114, 101, 97, 116, 32, 32]
 right: [112, 119, 114, 105, 116, 101, 118, 32, 105, 115, 32, 32, 32, 32, 32, 103, 114, 101, 97, 116, 32, 32, 33]


@the8472
Copy link
Member Author

the8472 commented Jun 29, 2025

Weird, the kernel should be new enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-unix Operating system: Unix-like S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with write_all_at on GitHub Action
4 participants