From d7dc9a47d59c44b8ec0e2bd3923b42d10ac37506 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 31 Aug 2025 12:25:41 -0700 Subject: add more posix tests --- test/fuse_integration/sendfile_unsupported.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/fuse_integration/sendfile_unsupported.go (limited to 'test/fuse_integration/sendfile_unsupported.go') 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 +} -- cgit v1.2.3