mirror of
https://github.com/deepseek-ai/3FS.git
synced 2026-11-05 00:47:47 +00:00
[PR #425] fix(fuse): clean up partial read setup #428
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/3FS#428
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/3FS/pull/425
Author: @OllieinCanada
Created: 8/24/2026
Status: 🔄 Open
Base:
main← Head:fix/read-file-partial-init-cleanup📝 Commits (2)
645e583fix(fuse): clean up partial read setupa7063ddtest(fuse): cover remaining read setup failures📊 Changes
2 files changed (+164 additions, -4 deletions)
View changed files
📝
hf3fs_fuse/io.py(+13 -4)➕
tests/fuse/test_hf3fs_fuse_io.py(+151 -0)📄 Description
Fixes #424
Summary
Preserve setup failures from
hf3fs_fuse.io.read_file()and clean up only theresources that were successfully acquired.
Root cause
The cleanup block unconditionally referenced
fd,ior,iov, andshm.When file opening, native registration, shared-memory creation, iovec creation,
or ioring creation failed, an
UnboundLocalErrorcould replace the usefuloriginal exception. Failures after shared-memory creation could also skip its
close()andunlink()calls.Fix
Successful read behavior and cleanup order remain unchanged. This also lets an
underlying
make_iovec()error such as #291 surface correctly; it does notattempt to solve #291's separate symlink failure.
Tests
A host-only test with a stubbed native binding covers:
os.open()failureValidation:
No 3FS mount, RDMA device, external service, or new dependency is required for
the regression test. The full deployment-dependent 3FS suite was not run in
this environment.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.