Skip to content
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

fix: windows implement of op::Write is incorrect #294

Merged
merged 2 commits into from
Aug 26, 2024

Conversation

Lzzzzzt
Copy link
Collaborator

@Lzzzzzt Lzzzzzt commented Aug 26, 2024

Fix the bug that the windows implements of op(Write/Read) use the FILE_CURRENT to seek the file pointer, which is not the same with the unix syscall pwrite/pread.

This PR is done by finishing the following tasks:

  • fix the bug that the windows implements of op(Write/Read)
  • fix the bug that the test fs_file.rs can not run on the windows platform.
  • remove the std part in function read in monoio::fs
  • add test for position write/read.

Other details are shown in the code.

Signed-off-by: Lzzzt <liuzitao0123@gmail.com>
Signed-off-by: lzzzt <liuzitao0123@gmail.com>
Copy link
Member

@ihciah ihciah left a comment

Choose a reason for hiding this comment

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

Thank you very much!

@ihciah ihciah merged commit bbc75f9 into bytedance:master Aug 26, 2024
25 checks passed
@Lzzzzzt Lzzzzzt deleted the windows/file-rw branch August 26, 2024 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants