mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Update docs to reference LISAFS instead of 9P.
PiperOrigin-RevId: 484293317
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
gVisor accesses the filesystem through a file proxy, called the Gofer. The gofer
|
||||
runs as a separate process, that is isolated from the sandbox. Gofer instances
|
||||
communicate with their respective sentry using the 9P protocol.
|
||||
communicate with their respective sentry using the LISAFS protocol.
|
||||
|
||||
Configuring the filesystem provides performance benefits, but isn't the only
|
||||
step to optimizing gVisor performance. See the [Production guide] for more.
|
||||
|
||||
+2
-2
@@ -412,7 +412,7 @@ func (c *containerMounter) createMountNamespace(ctx context.Context, conf *confi
|
||||
// Configure the gofer dentry cache size.
|
||||
gofer.SetDentryCacheSize(conf.DCache)
|
||||
|
||||
log.Infof("Mounting root over 9P, ioFD: %d", fd)
|
||||
log.Infof("Mounting root with gofer, ioFD: %d", fd)
|
||||
opts := &vfs.MountOptions{
|
||||
ReadOnly: c.root.Readonly,
|
||||
GetFilesystemOptions: vfs.GetFilesystemOptions{
|
||||
@@ -709,7 +709,7 @@ func (c *containerMounter) getMountNameAndOptions(conf *config.Config, m *mountA
|
||||
if m.fd == 0 {
|
||||
// Check that an FD was provided to fails fast. Technically FD=0 is valid,
|
||||
// but unlikely to be correct in this context.
|
||||
return "", nil, false, fmt.Errorf("9P mount requires a connection FD")
|
||||
return "", nil, false, fmt.Errorf("gofer mount requires a connection FD")
|
||||
}
|
||||
data = goferMountData(m.fd, c.getMountAccessType(conf, m.mount), conf.Lisafs)
|
||||
internalData = gofer.InternalFilesystemOptions{
|
||||
|
||||
+1
-1
@@ -133,7 +133,7 @@ func (b *Boot) SetFlags(f *flag.FlagSet) {
|
||||
f.IntVar(&b.specFD, "spec-fd", -1, "required fd with the container spec")
|
||||
f.IntVar(&b.controllerFD, "controller-fd", -1, "required FD of a stream socket for the control server that must be donated to this process")
|
||||
f.IntVar(&b.deviceFD, "device-fd", -1, "FD for the platform device file")
|
||||
f.Var(&b.ioFDs, "io-fds", "list of FDs to connect 9P clients. They must follow this order: root first, then mounts as defined in the spec")
|
||||
f.Var(&b.ioFDs, "io-fds", "list of FDs to connect gofer clients. They must follow this order: root first, then mounts as defined in the spec")
|
||||
f.Var(&b.stdioFDs, "stdio-fds", "list of FDs containing sandbox stdin, stdout, and stderr in that order")
|
||||
f.IntVar(&b.userLogFD, "user-log-fd", 0, "file descriptor to write user logs to. 0 means no logging.")
|
||||
f.IntVar(&b.startSyncFD, "start-sync-fd", -1, "required FD to used to synchronize sandbox startup")
|
||||
|
||||
@@ -151,9 +151,9 @@ type Args struct {
|
||||
// UserLog is the filename to send user-visible logs to. It may be empty.
|
||||
UserLog string
|
||||
|
||||
// IOFiles is the list of files that connect to a 9P endpoint for the mounts
|
||||
// points using Gofers. They must be in the same order as mounts appear in
|
||||
// the spec.
|
||||
// IOFiles is the list of files that connect to a gofer endpoint for the
|
||||
// mounts points using Gofers. They must be in the same order as mounts
|
||||
// appear in the spec.
|
||||
IOFiles []*os.File
|
||||
|
||||
// MountsFile is a file container mount information from the spec. It's
|
||||
|
||||
Reference in New Issue
Block a user