summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fsimpl/sys
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-03-12 01:06:00 +0000
committergVisor bot <gvisor-bot@google.com>2021-03-12 01:06:00 +0000
commit8a7964657411d80c685128531099d6c246216f12 (patch)
tree43a12cad4774774951da1548519e59ecff0050ae /pkg/sentry/fsimpl/sys
parent3bbc07ece91af55682430e6ae2a30060f5f7fd9c (diff)
parentc5667022b6617d732e0c0bcb8ca3b58d588ceafb (diff)
Merge release-20210301.0-37-gc5667022b (automated)
Diffstat (limited to 'pkg/sentry/fsimpl/sys')
-rw-r--r--pkg/sentry/fsimpl/sys/sys.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/sentry/fsimpl/sys/sys.go b/pkg/sentry/fsimpl/sys/sys.go
index dbd9ebdda..1d9280dae 100644
--- a/pkg/sentry/fsimpl/sys/sys.go
+++ b/pkg/sentry/fsimpl/sys/sys.go
@@ -143,6 +143,11 @@ func (fs *filesystem) Release(ctx context.Context) {
fs.Filesystem.Release(ctx)
}
+// MountOptions implements vfs.FilesystemImpl.MountOptions.
+func (fs *filesystem) MountOptions() string {
+ return fmt.Sprintf("dentry_cache_limit=%d", fs.MaxCachedDentries)
+}
+
// dir implements kernfs.Inode.
//
// +stateify savable