diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-05-05 16:29:35 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-05-05 16:29:35 +0000 |
commit | 0d55bbfaf332c52ca6edc547947e7c05dfbd5fa2 (patch) | |
tree | 0e9539157207cf408412a83e1ae3a460da1ba868 /pkg/sentry/fsimpl/kernfs/kernfs.go | |
parent | 6097d1091481ded24605786697cf5943de8bc498 (diff) | |
parent | b3bd41434c17a95a87d67490f2b9bfd71e1ad705 (diff) |
Merge release-20200422.0-27-gb3bd414 (automated)
Diffstat (limited to 'pkg/sentry/fsimpl/kernfs/kernfs.go')
-rwxr-xr-x | pkg/sentry/fsimpl/kernfs/kernfs.go | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/pkg/sentry/fsimpl/kernfs/kernfs.go b/pkg/sentry/fsimpl/kernfs/kernfs.go index 732837933..a83151ad3 100755 --- a/pkg/sentry/fsimpl/kernfs/kernfs.go +++ b/pkg/sentry/fsimpl/kernfs/kernfs.go @@ -132,13 +132,6 @@ func (fs *Filesystem) processDeferredDecRefsLocked() { fs.droppedDentriesMu.Unlock() } -// Init initializes a kernfs filesystem. This should be called from during -// vfs.FilesystemType.NewFilesystem for the concrete filesystem embedding -// kernfs. -func (fs *Filesystem) Init(vfsObj *vfs.VirtualFilesystem, fsType vfs.FilesystemType) { - fs.vfsfs.Init(vfsObj, fsType, fs) -} - // VFSFilesystem returns the generic vfs filesystem object. func (fs *Filesystem) VFSFilesystem() *vfs.Filesystem { return &fs.vfsfs @@ -261,6 +254,11 @@ func (d *Dentry) insertChildLocked(name string, child *Dentry) { d.children[name] = child } +// Inode returns the dentry's inode. +func (d *Dentry) Inode() Inode { + return d.inode +} + // The Inode interface maps filesystem-level operations that operate on paths to // equivalent operations on specific filesystem nodes. // |