From 392129f758df52d2edda987a08e7b43a689892c4 Mon Sep 17 00:00:00 2001 From: Cooper Date: Wed, 11 Feb 2026 17:42:04 -0800 Subject: [PATCH] Make task contents available in mount --- pkg/filesystem/vnode/tasks.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/filesystem/vnode/tasks.go b/pkg/filesystem/vnode/tasks.go index 5d5b04b2..66dce9a5 100644 --- a/pkg/filesystem/vnode/tasks.go +++ b/pkg/filesystem/vnode/tasks.go @@ -17,6 +17,7 @@ import ( ) const tasksCacheTTL = 5 * time.Second +const taskFileSentinelSize int64 = 10 << 20 // 10MB — must be large enough for FUSE/NFS to issue reads covering all content // TasksVNode provides /tasks directory listing tasks as files. // Each task appears as a file named {task_id}.task @@ -301,7 +302,7 @@ func (t *TasksVNode) Getattr(path string) (*FileInfo, error) { } // Task file - return file info - info := NewFileInfo(PathIno(path), 0, 0644) + info := NewFileInfo(PathIno(path), taskFileSentinelSize, 0644) if task.CreatedAt.Unix() > 0 { info.Mtime = task.CreatedAt info.Ctime = task.CreatedAt @@ -331,7 +332,7 @@ func (t *TasksVNode) Readdir(path string) ([]DirEntry, error) { Name: name, Mode: syscall.S_IFREG | 0644, Ino: PathIno(TasksPath + "/" + name), - Size: 0, // Size unknown until read + Size: taskFileSentinelSize, Mtime: mtime, }) }