zrepl/zfs/zfs_pipe.go

19 lines
303 B
Go
Raw Normal View History

// +build !linux
package zfs
import (
"os"
"sync"
)
var zfsPipeCapacityNotSupported sync.Once
func trySetPipeCapacity(p *os.File, capacity int) {
if debugEnabled {
zfsPipeCapacityNotSupported.Do(func() {
debug("trySetPipeCapacity error: OS does not support setting pipe capacity")
})
}
}