From: Frederick Robinson Date: Wed, 23 Aug 2023 21:59:32 +0000 (-0700) Subject: Update file_handle.go (#860) X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;ds=sidebyside;h=b836d2ad53ee6dae43bb256f8c8355fd77ad6c6d;p=btrtrc.git Update file_handle.go (#860) --- diff --git a/fs/file_handle.go b/fs/file_handle.go index 7c275c27..7edd1ea3 100644 --- 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 {