title: Synchronizing a file system (syncfs) in Go
body: <p>Is there a package that exports the <a href="http://man7.org/linux/man-pages/man2/sync.2.html" rel="nofollow"><code>syncfs</code></a> function in Go? I'd like to synchronize a particular file system.</p>
  
  <p>I found the <a href="https://golang.org/pkg/syscall/" rel="nofollow">syscall</a> package, but it only exports <code>FSync</code>, <code>Fdatasync</code> and <code>Sync</code>.</p>