summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fsimpl/memfs/benchmark_test.go
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2019-12-10 18:16:47 -0800
committergVisor bot <gvisor-bot@google.com>2019-12-10 18:21:07 -0800
commit46651a7d26559bdc69d460bdeb4de5968212d615 (patch)
tree00ca98ae40b9a2c12a8dfa3a51ec98cd78d04cf9 /pkg/sentry/fsimpl/memfs/benchmark_test.go
parent4ff71b5be462f3f16808abea11de1f5e01567e5d (diff)
Add most VFS methods for syscalls.
PiperOrigin-RevId: 284892289
Diffstat (limited to 'pkg/sentry/fsimpl/memfs/benchmark_test.go')
-rw-r--r--pkg/sentry/fsimpl/memfs/benchmark_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/fsimpl/memfs/benchmark_test.go b/pkg/sentry/fsimpl/memfs/benchmark_test.go
index ea6417ce7..4a7a94a52 100644
--- a/pkg/sentry/fsimpl/memfs/benchmark_test.go
+++ b/pkg/sentry/fsimpl/memfs/benchmark_test.go
@@ -394,7 +394,7 @@ func BenchmarkVFS2MemfsMountStat(b *testing.B) {
}
defer mountPoint.DecRef()
// Create and mount the submount.
- if err := vfsObj.NewMount(ctx, creds, "", &pop, "memfs", &vfs.GetFilesystemOptions{}); err != nil {
+ if err := vfsObj.MountAt(ctx, creds, "", &pop, "memfs", &vfs.MountOptions{}); err != nil {
b.Fatalf("failed to mount tmpfs submount: %v", err)
}
filePathBuilder.WriteString(mountPointName)