X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=fs%2Ffile_handle.go;h=7a0c9a1eac435ed3410930762a2df5d763bf9253;hb=732069b113b5d67f231958c777997201b10c19e6;hp=2a8fe2ccad5f6a96cefa24b5db687bec26a520e1;hpb=c1c659858867455a619e2c373e09188967f04213;p=btrtrc.git diff --git a/fs/file_handle.go b/fs/file_handle.go index 2a8fe2cc..7a0c9a1e 100644 --- a/fs/file_handle.go +++ b/fs/file_handle.go @@ -54,6 +54,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 {