Browse Source
feat: tri-state IOBackend config with explicit logging and CLI flag
feat: tri-state IOBackend config with explicit logging and CLI flag
Replace UseIOUring bool with IOBackend IOBackendMode (tri-state): - "standard" (default): sequential pread/pwrite/fdatasync - "auto": try io_uring, fall back to standard with warning log - "io_uring": require io_uring, fail startup if unavailable NewIOUring now returns ErrIOUringUnavailable instead of silently falling back — callers decide whether to fail or fall back based on the requested mode. All mode transitions are logged: io backend: requested=auto selected=standard reason=... io backend: requested=io_uring selected=io_uring CLI: --io-backend=standard|auto|io_uring added to iscsi-target. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>feature/sw-block
7 changed files with 83 additions and 44 deletions
-
10weed/storage/blockvol/batchio/batchio.go
-
6weed/storage/blockvol/batchio/iouring_linux.go
-
4weed/storage/blockvol/batchio/iouring_other.go
-
34weed/storage/blockvol/batchio/standard_test.go
-
46weed/storage/blockvol/blockvol.go
-
18weed/storage/blockvol/config.go
-
9weed/storage/blockvol/iscsi/cmd/iscsi-target/main.go
Write
Preview
Loading…
Cancel
Save
Reference in new issue