summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fsimpl/gofer
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2020-06-17 21:21:08 -0700
committergVisor bot <gvisor-bot@google.com>2020-06-17 21:22:16 -0700
commit6e0c170522279ca72119b17c41e2e1dc93c49d6a (patch)
treeaf360a26f141e33228f125352f641c0ed3f45cff /pkg/sentry/fsimpl/gofer
parent22b0bb21383614f6258dee27f4a254d2da97b586 (diff)
Implement Sync() to directories
Updates #1035, #1199 PiperOrigin-RevId: 317028108
Diffstat (limited to 'pkg/sentry/fsimpl/gofer')
-rw-r--r--pkg/sentry/fsimpl/gofer/directory.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/sentry/fsimpl/gofer/directory.go b/pkg/sentry/fsimpl/gofer/directory.go
index b98218753..480510b2a 100644
--- a/pkg/sentry/fsimpl/gofer/directory.go
+++ b/pkg/sentry/fsimpl/gofer/directory.go
@@ -299,3 +299,8 @@ func (fd *directoryFD) Seek(ctx context.Context, offset int64, whence int32) (in
return 0, syserror.EINVAL
}
}
+
+// Sync implements vfs.FileDescriptionImpl.Sync.
+func (fd *directoryFD) Sync(ctx context.Context) error {
+ return fd.dentry().handle.sync(ctx)
+}