diff options
Diffstat (limited to 'integrationtests/cmd')
| -rw-r--r-- | integrationtests/cmd/ioworkload/scenario_copy_file_range.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/integrationtests/cmd/ioworkload/scenario_copy_file_range.go b/integrationtests/cmd/ioworkload/scenario_copy_file_range.go index 87531b0..ce0524e 100644 --- a/integrationtests/cmd/ioworkload/scenario_copy_file_range.go +++ b/integrationtests/cmd/ioworkload/scenario_copy_file_range.go @@ -37,6 +37,9 @@ func copyFileRangeBasic() error { if _, err := syscall.Write(srcFd, data); err != nil { return fmt.Errorf("write source: %w", err) } + if _, err := syscall.Seek(srcFd, 0, 0); err != nil { + return fmt.Errorf("seek source: %w", err) + } n, _, errno := syscall.Syscall6(uintptr(sysCopyFileRange), uintptr(srcFd), 0, uintptr(dstFd), 0, uintptr(len(data)), 0) if errno != 0 { |
