Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
clh: hypervisor: Do not set 9p values for virtiofs
Browse files Browse the repository at this point in the history
9p values are ignored by virtiofs, but this should be
not changed on validation to allow have unit test with
virtiofs config.

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
  • Loading branch information
jcvenegas committed Dec 20, 2019
1 parent 6a10cd9 commit af5c9c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtcontainers/hypervisor.go
Expand Up @@ -429,7 +429,7 @@ func (conf *HypervisorConfig) valid() error {
conf.DefaultMaxVCPUs = defaultMaxQemuVCPUs
}

if conf.Msize9p == 0 {
if conf.Msize9p == 0 && conf.SharedFS != config.VirtioFS {
conf.Msize9p = defaultMsize9p
}

Expand Down

0 comments on commit af5c9c2

Please sign in to comment.