aboutsummaryrefslogtreecommitdiff
path: root/test/fuse_integration/vectored_io_unsupported.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/fuse_integration/vectored_io_unsupported.go')
-rw-r--r--test/fuse_integration/vectored_io_unsupported.go41
1 files changed, 41 insertions, 0 deletions
diff --git a/test/fuse_integration/vectored_io_unsupported.go b/test/fuse_integration/vectored_io_unsupported.go
new file mode 100644
index 000000000..963c6e2d4
--- /dev/null
+++ b/test/fuse_integration/vectored_io_unsupported.go
@@ -0,0 +1,41 @@
+//go:build !unix
+
+package fuse
+
+import (
+ "errors"
+)
+
+// Vectored I/O support for unsupported platforms
+
+var ErrVectoredIONotSupported = errors.New("vectored I/O not supported on this platform")
+
+// IOVec represents an I/O vector for readv/writev operations
+type IOVec struct {
+ Base *byte
+ Len uint64
+}
+
+func readvFile(fd int, iovs []IOVec) (int, error) {
+ return 0, ErrVectoredIONotSupported
+}
+
+func writevFile(fd int, iovs []IOVec) (int, error) {
+ return 0, ErrVectoredIONotSupported
+}
+
+func preadvFile(fd int, iovs []IOVec, offset int64) (int, error) {
+ return 0, ErrVectoredIONotSupported
+}
+
+func pwritevFile(fd int, iovs []IOVec, offset int64) (int, error) {
+ return 0, ErrVectoredIONotSupported
+}
+
+func makeIOVecs(buffers [][]byte) []IOVec {
+ return nil
+}
+
+func isVectoredIOSupported() bool {
+ return false
+}