mirror of
https://github.com/zrepl/zrepl.git
synced 2024-12-01 04:45:27 +01:00
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")
|
||
|
})
|
||
|
}
|
||
|
}
|