Skip to content

Convert several Filesystem methods to u64 offset#650

Closed
cberner wants to merge 1 commit intocberner:masterfrom
cberner-devin:codex/convert-remaining-filesystem-methods-to-u64-offset
Closed

Convert several Filesystem methods to u64 offset#650
cberner wants to merge 1 commit intocberner:masterfrom
cberner-devin:codex/convert-remaining-filesystem-methods-to-u64-offset

Conversation

@cberner
Copy link
Owner

@cberner cberner commented Feb 14, 2026

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1c8749effd

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +1515 to +1517
pub(crate) fn offset(&self) -> Result<u64, Errno> {
let offset = self.arg.offset as u64;
validate_off_t("fuse_lseek_in.arg.offset", offset)?;

Choose a reason for hiding this comment

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

P1 Badge Preserve signed lseek offsets from kernel request

fuse_lseek_in.offset is a signed off_t value, so negative offsets are valid inputs for cases like SEEK_END/SEEK_CUR; converting it to u64 here causes any negative request to become a large unsigned value and fail validate_off_t, returning EINVAL before the filesystem callback runs. This regresses valid lseek behavior and should keep the request offset signed through dispatch.

Useful? React with 👍 / 👎.

@cberner cberner closed this Feb 14, 2026
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.

1 participant