projects
/
btrtrc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c14123f
)
Update file_handle.go (#860)
v1.52.6
author
Frederick Robinson <frederick.robinson@frrad.com>
Wed, 23 Aug 2023 21:59:32 +0000 (14:59 -0700)
committer
Matt Joiner <anacrolix@gmail.com>
Wed, 1 Nov 2023 06:11:04 +0000 (17:11 +1100)
(cherry picked from commit
b836d2ad53ee6dae43bb256f8c8355fd77ad6c6d
)
fs/file_handle.go
patch
|
blob
|
history
diff --git
a/fs/file_handle.go
b/fs/file_handle.go
index 7c275c276fa785360b7d9a60c08a04a3a1ec29f4..7edd1ea3522f89e999fcd94ed4f932c9a346fc93 100644
(file)
--- a/
fs/file_handle.go
+++ b/
fs/file_handle.go
@@
-53,6
+53,9
@@
func (me fileHandle) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse
// can demand up to 16MiB at a time, so this gets tricky. For now, I'll restore the old
// behaviour from before 2a7352a, which nobody reported problems with.
n, readErr = io.ReadFull(r, resp.Data)
+ if readErr == io.ErrUnexpectedEOF {
+ readErr = nil
+ }
} else {
n, readErr = r.Read(resp.Data)
if readErr == io.EOF {