From 2f5062ac6cf64ed2d9311642d9ef34ef31f104e3 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Tue, 24 Mar 2015 13:00:18 +1100 Subject: [PATCH] Oops, msync helper is broken. --- samples/flushfs/flush_fs_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/flushfs/flush_fs_test.go b/samples/flushfs/flush_fs_test.go index 2f26c68..d5a04b1 100644 --- a/samples/flushfs/flush_fs_test.go +++ b/samples/flushfs/flush_fs_test.go @@ -179,7 +179,7 @@ func dup2(oldfd int, newfd int) (err error) { // Call msync(2) on a slice previously returned by mmap(2). func msync(p []byte) (err error) { _, _, errno := unix.Syscall( - unix.SYS_MMAP, + unix.SYS_MSYNC, uintptr(unsafe.Pointer(&p[0])), uintptr(len(p)), 0)