Skip to content

fix: correct misleading comment about fh_out remapping and fix fmt#552

Closed
claude-claude[bot] wants to merge 1 commit intofuse-pipe-restorefrom
claude/fix-22648071716
Closed

fix: correct misleading comment about fh_out remapping and fix fmt#552
claude-claude[bot] wants to merge 1 commit intofuse-pipe-restorefrom
claude/fix-22648071716

Conversation

@claude-claude
Copy link
Copy Markdown
Contributor

@claude-claude claude-claude bot commented Mar 3, 2026

Auto-Fix for PR #549

Issues Fixed

  1. Misleading comment on with_fh() for CopyFileRange/RemapFileRange — The comment incorrectly claimed "the EBADF retry in RemapFs handles one handle at a time via fh()". In reality, fh() only returns fh_in and no code path ever remaps fh_out. Updated to accurately document this as a known limitation with a TODO.
  2. Pre-existing cargo fmt issue in remap.rs — Long error!() macro call on line 542 wasn't split across lines per rustfmt rules.

Changes

  • fuse-pipe/src/protocol/request.rs: Updated comment on with_fh() CopyFileRange/RemapFileRange arm to accurately reflect that fh_out is NOT remapped (known limitation, not handled by EBADF retry)
  • fuse-pipe/src/server/remap.rs: Reformatted error!() call in restore_from_table() to pass cargo fmt

Generated by Claude | Review Run

The comment on with_fh() for CopyFileRange/RemapFileRange incorrectly
claimed "the EBADF retry in RemapFs handles one handle at a time via
fh()" — but fh() only returns fh_in, and no code path ever remaps
fh_out. Updated the comment to accurately document this as a known
limitation with a TODO for future work.

Also fixes a pre-existing cargo fmt issue in remap.rs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ejc3
Copy link
Copy Markdown
Owner

ejc3 commented Mar 4, 2026

Not needed - comment fix cherry-picked directly

@ejc3 ejc3 closed this Mar 4, 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