https://github.com/wader/disable_sendfile_vbox_linux
Go VirtualBox vboxsf sendfile bug workaround
https://github.com/wader/disable_sendfile_vbox_linux
bpf golang seccomp sendfile vboxsf
Last synced: about 2 months ago
JSON representation
Go VirtualBox vboxsf sendfile bug workaround
- Host: GitHub
- URL: https://github.com/wader/disable_sendfile_vbox_linux
- Owner: wader
- Created: 2015-12-26T15:29:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-13T09:25:25.000Z (almost 9 years ago)
- Last Synced: 2026-03-04T04:13:22.774Z (4 months ago)
- Topics: bpf, golang, seccomp, sendfile, vboxsf
- Language: Go
- Size: 2.93 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
##### Go VirtualBox vboxsf sendfile bug workaround
If you serve static content from a shared folder you might have run into a
vboxsf file corruption bug. This hack disables the sendfile syscall for
the go process which will force the standard library to fallback to userland
buffered IO.
References:
[Ticket #9069 shared folder doesn't seem to update](https://www.virtualbox.org/ticket/9069)
[net: Add ability to disable sendfile](https://github.com/golang/go/issues/9694)
##### Usage
Save [disable_sendfile_vbox_linux.go](disable_sendfile_vbox_linux.go) to somewhere in your go project.
Or do
```go
import (
_ "github.com/wader/disable_sendfile_vbox_linux"
}
```
in a source file.
##### License
Public domain. Your free to do whatever you want.