Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
e41f909
api changes for file i/o
rgarcia Aug 3, 2025
a9062e4
implementation
rgarcia Aug 3, 2025
33de44e
file directory ops
rgarcia Aug 3, 2025
3e191ac
Fix fs watch goroutine leaks and improve error handling
cursoragent Aug 3, 2025
8c3bed1
Improve fs watch goroutine lifecycle and resource management
cursoragent Aug 3, 2025
0953976
Support custom file permissions when writing files via API
cursoragent Aug 3, 2025
e895649
Fix file listing to handle stat errors and correctly set file metadata
cursoragent Aug 3, 2025
f7313f6
Fix race condition and prevent blocking in filesystem watch events
cursoragent Aug 3, 2025
f02ae76
vet
rgarcia Aug 4, 2025
5550c86
fix sse
rgarcia Aug 5, 2025
808f925
Fix user and group lookup error handling in SetFilePermissions
cursoragent Aug 5, 2025
5821cdd
Merge branch 'main' into raf/kernel-19-support-file-io
rgarcia Aug 5, 2025
70ad2e8
Merge branch 'main' into raf/kernel-19-support-file-io
rgarcia Aug 6, 2025
53b054a
add server to headless image (so we have file i/o there too)
rgarcia Aug 6, 2025
494147f
test script
rgarcia Aug 6, 2025
549e537
post -> put
rgarcia Aug 6, 2025
cd08bba
Improve file permission handling with direct UID/GID and fallback lookup
cursoragent Aug 6, 2025
63ccaa3
Handle write errors in SSE event streaming to prevent potential hanging
cursoragent Aug 6, 2025
59e236d
Improve file system watcher with safe close and recursive monitoring
cursoragent Aug 6, 2025
e6af0d9
good bot
rgarcia Aug 6, 2025
9da2bb1
pr comments
rgarcia Aug 6, 2025
bc28626
more 400s -> 500s
rgarcia Aug 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions server/cmd/api/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"os"
"sync"
"time"

"github.com/onkernel/kernel-images/server/lib/logger"
Expand All @@ -18,6 +19,9 @@ type ApiService struct {

recordManager recorder.RecordManager
factory recorder.FFmpegRecorderFactory
// Filesystem watch management
watchMu sync.RWMutex
watches map[string]*fsWatch
}

var _ oapi.StrictServerInterface = (*ApiService)(nil)
Expand All @@ -34,6 +38,7 @@ func New(recordManager recorder.RecordManager, factory recorder.FFmpegRecorderFa
recordManager: recordManager,
factory: factory,
defaultRecorderID: "default",
watches: make(map[string]*fsWatch),
}, nil
}

Expand Down
Loading
Loading