mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-06 12:06:49 +00:00
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:
parent
8152e15a61
commit
7e85032aa7
@ -51,6 +51,7 @@ var (
|
|||||||
vsockSocketScheme = "vsock"
|
vsockSocketScheme = "vsock"
|
||||||
kata9pDevType = "9p"
|
kata9pDevType = "9p"
|
||||||
kataBlkDevType = "blk"
|
kataBlkDevType = "blk"
|
||||||
|
sharedDir9pOptions = []string{"trans=virtio,version=9p2000.L", "nodev"}
|
||||||
)
|
)
|
||||||
|
|
||||||
// KataAgentConfig is a structure storing information needed
|
// KataAgentConfig is a structure storing information needed
|
||||||
@ -476,7 +477,7 @@ func (k *kataAgent) startPod(pod Pod) error {
|
|||||||
Source: mountGuest9pTag,
|
Source: mountGuest9pTag,
|
||||||
MountPoint: kataGuestSharedDir,
|
MountPoint: kataGuestSharedDir,
|
||||||
Fstype: type9pFs,
|
Fstype: type9pFs,
|
||||||
Options: []string{"trans=virtio", "nodev"},
|
Options: sharedDir9pOptions,
|
||||||
}
|
}
|
||||||
|
|
||||||
req := &grpc.CreateSandboxRequest{
|
req := &grpc.CreateSandboxRequest{
|
||||||
|
Loading…
Reference in New Issue
Block a user