From 7e85032aa7d3953d83e9dbd82e6ed2ca2e3f73a3 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Fri, 9 Mar 2018 10:26:57 -0800 Subject: [PATCH] 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 --- virtcontainers/kata_agent.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/virtcontainers/kata_agent.go b/virtcontainers/kata_agent.go index 7e39b76789..5a2a88f361 100644 --- a/virtcontainers/kata_agent.go +++ b/virtcontainers/kata_agent.go @@ -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{