diff options
Diffstat (limited to 'test/fuse_integration/sendfile_unsupported.go')
| -rw-r--r-- | test/fuse_integration/sendfile_unsupported.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/fuse_integration/sendfile_unsupported.go b/test/fuse_integration/sendfile_unsupported.go new file mode 100644 index 000000000..64a7818dd --- /dev/null +++ b/test/fuse_integration/sendfile_unsupported.go @@ -0,0 +1,19 @@ +//go:build !linux && !darwin + +package fuse + +import ( + "errors" +) + +// Sendfile support for unsupported platforms + +var ErrSendfileNotSupported = errors.New("sendfile not supported on this platform") + +func sendfileTransfer(outFd int, inFd int, offset *int64, count int) (int, error) { + return 0, ErrSendfileNotSupported +} + +func isSendfileSupported() bool { + return false +} |
