Skip to content

Support streaming write into write cache - #4178

Draft
cthulhu-rider wants to merge 8 commits into
masterfrom
storage-put-stream-continue
Draft

cthulhu-rider wants to merge 8 commits into
masterfrom
storage-put-stream-continue

Conversation

@cthulhu-rider

Copy link
Copy Markdown
Contributor

@cthulhu-rider
cthulhu-rider force-pushed the storage-put-stream-continue branch 8 times, most recently from 22fba6c to 573e6b8 Compare September 15, 2026 11:01
It's unused if there are write problems.

Signed-off-by: Leonard Liubich <leonard@morphbits.io>
Previously, linkat syscall error had 'unix write' context. Also,
incomplete write case had 'unix write: incomplete unix write' text which
is tautology.

Signed-off-by: Leonard Liubich <leonard@morphbits.io>
Refactoring purpose.

Close statement appears multiple times now, but due to this the logic is
more readable.

Signed-off-by: Leonard Liubich <leonard@morphbits.io>
@cthulhu-rider
cthulhu-rider force-pushed the storage-put-stream-continue branch from 573e6b8 to 88ce372 Compare September 15, 2026 11:57
Make behavior as close to Put as possible.

To be used for #4157.

Signed-off-by: Leonard Liubich <leonard@morphbits.io>
OS-independent and more familiar.

Signed-off-by: Leonard Liubich <leonard@morphbits.io>
Error type supports inversion, so casting is not needed. This changes
the behavior for 404 and 'no space left' errors outside fs.PathError,
but system functions shouldn't return them in vain anyway.

Signed-off-by: Leonard Liubich <leonard@morphbits.io>
Signed-off-by: Leonard Liubich <leonard@morphbits.io>
Make behavior as close to Put as possible.

To be used for #4157.

Signed-off-by: Leonard Liubich <leonard@morphbits.io>
@cthulhu-rider
cthulhu-rider force-pushed the storage-put-stream-continue branch from 88ce372 to 01de14d Compare September 15, 2026 15:51
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