mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-28 11:25:20 +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")
|
||
|
})
|
||
|
}
|
||
|
}
|