virtcontainers: kata_agent: Use 9p2000.L version for 9p

There is a shared directory shared through virtio-9p between the
host and guest OS. The version of the driver used matters as it
may improve a few things. In this case, using the specific version
9p2000.L does not result in any regression, and it fixes failures
related to symlinks being passed through 9p.

Fixes #56

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2018-03-09 10:26:57 -08:00
parent 8152e15a61
commit 7e85032aa7

View File

@ -51,6 +51,7 @@ var (
vsockSocketScheme = "vsock"
kata9pDevType = "9p"
kataBlkDevType = "blk"
sharedDir9pOptions = []string{"trans=virtio,version=9p2000.L", "nodev"}
)
// KataAgentConfig is a structure storing information needed
@ -476,7 +477,7 @@ func (k *kataAgent) startPod(pod Pod) error {
Source: mountGuest9pTag,
MountPoint: kataGuestSharedDir,
Fstype: type9pFs,
Options: []string{"trans=virtio", "nodev"},
Options: sharedDir9pOptions,
}
req := &grpc.CreateSandboxRequest{