mirror of
https://github.com/zrepl/zrepl.git
synced 2024-12-01 12:55:21 +01:00
796c5ad42d
transport/ssh: update go-netssh to new version => supports CloseWrite and Deadlines => build: require Go 1.11 (netssh requires it)
19 lines
303 B
Go
19 lines
303 B
Go
// +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")
|
|
})
|
|
}
|
|
}
|