Skip to content

Commit

Permalink
Support SyncFS() - not really wired up in Linux though (only wired up…
Browse files Browse the repository at this point in the history
… in virtio-fs)
  • Loading branch information
vitalif committed Oct 24, 2024
1 parent 233b1f9 commit 91f95fd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions internal/goofys_fuse.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,20 @@ func (fs *GoofysFuse) SyncFile(
return
}

func (fs *GoofysFuse) SyncFS(
ctx context.Context,
op *fuseops.SyncFSOp) (err error) {

atomic.AddInt64(&fs.stats.metadataWrites, 1)

if !fs.flags.IgnoreFsync {
err = fs.SyncTree(nil)
err = mapAwsError(err)
}

return
}

func (fs *GoofysFuse) FlushFile(
ctx context.Context,
op *fuseops.FlushFileOp) (err error) {
Expand Down

0 comments on commit 91f95fd

Please sign in to comment.