mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-25 01:44:43 +01:00
24 lines
414 B
Go
24 lines
414 B
Go
//go:build !linux
|
|
// +build !linux
|
|
|
|
package zfs
|
|
|
|
import (
|
|
"os"
|
|
"sync"
|
|
)
|
|
|
|
func getPipeCapacityHint(envvar string) int {
|
|
return 0 // not supported
|
|
}
|
|
|
|
var zfsPipeCapacityNotSupported sync.Once
|
|
|
|
func trySetPipeCapacity(p *os.File, capacity int) {
|
|
if debugEnabled && capacity != 0 {
|
|
zfsPipeCapacityNotSupported.Do(func() {
|
|
debug("trySetPipeCapacity error: OS does not support setting pipe capacity")
|
|
})
|
|
}
|
|
}
|