MCPcopy
hub / github.com/google/gvisor / PrependPath

Method PrependPath

pkg/sentry/fsimpl/host/host.go:397–402  ·  view source on GitHub ↗
(ctx context.Context, vfsroot, vd vfs.VirtualDentry, b *fspath.Builder)

Source from the content-addressed store, hash-verified

395}
396
397func (fs *filesystem) PrependPath(ctx context.Context, vfsroot, vd vfs.VirtualDentry, b *fspath.Builder) error {
398 d := vd.Dentry().Impl().(*kernfs.Dentry)
399 inode := d.Inode().(*inode)
400 b.PrependComponent(fmt.Sprintf("host:[%d]", inode.ino))
401 return vfs.PrependPathSyntheticError{}
402}
403
404// MountOptions implements vfs.FilesystemImpl.MountOptions.
405func (fs *filesystem) MountOptions() string {

Callers

nothing calls this directly

Calls 4

PrependComponentMethod · 0.80
ImplMethod · 0.45
DentryMethod · 0.45
InodeMethod · 0.45

Tested by

no test coverage detected