From c366cee82cb838180ac453cb2ba87c2e0bb335aa Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Tue, 19 May 2026 15:52:25 +0200 Subject: [PATCH] fix: return EOF instead of EIO on read past end of file --- cmd/ollie-9p-mount/node.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/ollie-9p-mount/node.go b/cmd/ollie-9p-mount/node.go index 2e93e9b..0aa2530 100644 --- a/cmd/ollie-9p-mount/node.go +++ b/cmd/ollie-9p-mount/node.go @@ -142,8 +142,8 @@ func (f *p9File) Read(ctx context.Context, fh fs.FileHandle, dest []byte, off in } } n, err := fid.Read(dest) - if err != nil && n == 0 { - return nil, syscall.EIO + if n == 0 { + return fuse.ReadResultData(nil), 0 } return fuse.ReadResultData(dest[:n]), 0 }