2021-10-09 16:50:25 +02:00
|
|
|
//go:build !linux
|
2018-12-11 22:01:50 +01:00
|
|
|
// +build !linux
|
|
|
|
|
|
|
|
package zfs
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
"sync"
|
|
|
|
)
|
|
|
|
|
2021-03-21 21:46:29 +01:00
|
|
|
func getPipeCapacityHint(envvar string) int {
|
|
|
|
return 0 // not supported
|
|
|
|
}
|
|
|
|
|
2018-12-11 22:01:50 +01:00
|
|
|
var zfsPipeCapacityNotSupported sync.Once
|
|
|
|
|
|
|
|
func trySetPipeCapacity(p *os.File, capacity int) {
|
2021-03-21 21:46:29 +01:00
|
|
|
if debugEnabled && capacity != 0 {
|
2018-12-11 22:01:50 +01:00
|
|
|
zfsPipeCapacityNotSupported.Do(func() {
|
|
|
|
debug("trySetPipeCapacity error: OS does not support setting pipe capacity")
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|