Files
seaweedfs/weed/storage/blockvol/batchio/iouring_other.go
T
Ping QiuandClaude Opus 4.6 003b8c2f28 fix: require explicit build tags for io_uring backends, add implementation logging
All three io_uring backends (iceber, giouring, raw) now require explicit
build tags — no tag means standard-only. Each backend registers its name
via IOUringImpl so startup logs show compiled implementation alongside
requested/selected backend mode.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 18:19:31 -07:00

13 lines
496 B
Go

//go:build !linux || (!iouring_iceber && !iouring_giouring && !iouring_raw)
package batchio
// NewIOUring returns ErrIOUringUnavailable when no io_uring backend is
// compiled in. On Linux, use one of these build tags to enable a backend:
// - iouring_iceber (iceber/iouring-go library)
// - iouring_giouring (pawelgaczynski/giouring library)
// - iouring_raw (raw syscall wrappers, zero deps)
func NewIOUring(ringSize uint) (BatchIO, error) {
return nil, ErrIOUringUnavailable
}