Test / test (push) Canceled after 0s
Test / fuzz (./compat, FuzzParseFormat) (push) Canceled after 0s
Test / fuzz (./formatter, FuzzFormatJSON) (push) Canceled after 0s
Test / fuzz (./formatter, FuzzFormatTextPolicy) (push) Canceled after 0s
Test / fuzz (./sanitizer, FuzzSanitize) (push) Canceled after 0s
Test / fuzz (./sanitizer, FuzzSerializerJSON) (push) Canceled after 0s
18 lines
410 B
Go
18 lines
410 B
Go
//go:build !unix
|
|
|
|
package log
|
|
|
|
import (
|
|
"math"
|
|
"os"
|
|
)
|
|
|
|
// reopenFlags open the log path again; see openLogPath
|
|
const reopenFlags = os.O_APPEND | os.O_CREATE | os.O_WRONLY
|
|
|
|
// getDiskFreeSpace reports unlimited space where statfs is unavailable.
|
|
// Total-size limits still apply; only the free-space check is inert.
|
|
func (l *Logger) getDiskFreeSpace(path string) (int64, error) {
|
|
return math.MaxInt64, nil
|
|
}
|