vfs: rename Fsync to Sync and implement Sync on Node and Handle

This commit is contained in:
Nick Craig-Wood
2017-11-20 12:46:23 +00:00
parent eb3415db50
commit b4083b4371
10 changed files with 40 additions and 10 deletions
+4
View File
@@ -65,6 +65,10 @@ func TestWriteFileHandleMethods(t *testing.T) {
_, err = fh.ReadAt(buf, 0)
assert.Equal(t, EPERM, err)
// Sync
err = fh.Sync()
assert.NoError(t, err)
// Close
assert.NoError(t, fh.Close())