summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/mounts.go
diff options
context:
space:
mode:
authorNicolas Lacasse <nlacasse@google.com>2018-08-28 15:08:15 -0700
committerShentubot <shentubot@google.com>2018-08-28 15:09:17 -0700
commit515d9bf43b358cf7645d34dccdcc299f43dd8d74 (patch)
tree800c2b4860b4c76cdb311a874840bf0ae9613828 /pkg/sentry/fs/mounts.go
parentd724863a313f5e08a043c8f2ccb4969e8ea23de1 (diff)
fs: Add tests for dirent ref counting with an overlay.
PiperOrigin-RevId: 210614669 Change-Id: I408365ff6d6c7765ed7b789446d30e7079cbfc67
Diffstat (limited to 'pkg/sentry/fs/mounts.go')
-rw-r--r--pkg/sentry/fs/mounts.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/fs/mounts.go b/pkg/sentry/fs/mounts.go
index 144d3427d..0318f135d 100644
--- a/pkg/sentry/fs/mounts.go
+++ b/pkg/sentry/fs/mounts.go
@@ -348,10 +348,10 @@ func (mns *MountNamespace) Unmount(ctx context.Context, node *Dirent, detachOnly
// Precondition: the path must be non-empty.
func (mns *MountNamespace) FindLink(ctx context.Context, root, wd *Dirent, path string, maxTraversals uint) (*Dirent, error) {
if root == nil {
- panic("MountNamespace.FindInode: root must not be nil")
+ panic("MountNamespace.FindLink: root must not be nil")
}
if len(path) == 0 {
- panic("MountNamespace.FindInode: path is empty")
+ panic("MountNamespace.FindLink: path is empty")
}
// Split the path.