[GH-ISSUE #1825] Audit partial writes #937

Open
opened 2026-03-04 01:50:04 +03:00 by kerem · 1 comment
Owner

Originally created by @gaul on GitHub (Jan 2, 2022).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1825

Most of our code calls pwrite and checks != -1. There are some corner cases with signals and disk full that can cause partial writes. We should add a helper function which restarts the write with the partial buffer. It would also be nice to write an LD_PRELOAD helper which simulates these short writes.

Originally created by @gaul on GitHub (Jan 2, 2022). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1825 Most of our code calls `pwrite` and checks != -1. There are some corner cases with signals and disk full that can cause partial writes. We should add a helper function which restarts the write with the partial buffer. It would also be nice to write an `LD_PRELOAD` helper which simulates these short writes.
Author
Owner

@ggtakec commented on GitHub (Jan 9, 2022):

I think it is easy to implement the retry processing of interruption by signal.
And recovering Disk full seems to be difficult because I think that an error will occur again even if trying again.(Because we have to make free disk space, ...)

<!-- gh-comment-id:1008207715 --> @ggtakec commented on GitHub (Jan 9, 2022): I think it is easy to implement the retry processing of interruption by signal. And recovering Disk full seems to be difficult because I think that an error will occur again even if trying again.(Because we have to make free disk space, ...)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#937
No description provided.