Skip to content

support pread/pwrite#29

Merged
CvvT merged 1 commit into
mainfrom
pread
Mar 7, 2025
Merged

support pread/pwrite#29
CvvT merged 1 commit into
mainfrom
pread

Conversation

@CvvT
Copy link
Copy Markdown
Contributor

@CvvT CvvT commented Mar 7, 2025

Support pread/pwrite. Compared to read/write, the only difference is whether it needs to update the file offset.

@CvvT CvvT requested a review from wdcui March 7, 2025 19:26
Copy link
Copy Markdown
Member

@jaybosamiya-ms jaybosamiya-ms left a comment

Choose a reason for hiding this comment

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

Changes look good to me, thanks!

GitHub Actions gave the 👀 because of this check:

--- failure trait_method_parameter_count_changed: pub trait method parameter count changed ---

Description:
A trait method now takes a different number of parameters.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#major-any-change-to-trait-item-signatures
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.39.0/src/lints/trait_method_parameter_count_changed.ron

Failed in:
  FileSystem::read now takes 4 instead of 3 parameters, in file /home/runner/work/litebox/litebox/litebox/src/fs/mod.rs:51
  FileSystem::write now takes 4 instead of 3 parameters, in file /home/runner/work/litebox/litebox/litebox/src/fs/mod.rs:57

This is an expected change in interface via this PR

Comment thread litebox/src/fs/in_mem.rs
Comment thread litebox/src/fs/in_mem.rs
@wdcui
Copy link
Copy Markdown
Member

wdcui commented Mar 7, 2025

Feel free to merge, @CvvT

@CvvT CvvT merged commit d527501 into main Mar 7, 2025
@CvvT CvvT deleted the pread branch March 7, 2025 22:03
@jaybosamiya-ms jaybosamiya-ms mentioned this pull request Mar 7, 2025
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.

3 participants