From 5070fcf74ddd9be8302d146af172a7077e22b587 Mon Sep 17 00:00:00 2001 From: Archana Shinde Date: Mon, 16 Apr 2018 09:43:58 -0700 Subject: [PATCH] env: Add 9p msize to kata-env Adding msize option for 9p as part of the hypervisor info. Signed-off-by: Archana Shinde --- cli/kata-env.go | 6 ++++-- cli/kata-env_test.go | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cli/kata-env.go b/cli/kata-env.go index 73495f847e..f3cdba6e6a 100644 --- a/cli/kata-env.go +++ b/cli/kata-env.go @@ -30,7 +30,7 @@ import ( // // XXX: Increment for every change to the output format // (meaning any change to the EnvInfo type). -const formatVersion = "1.0.10" +const formatVersion = "1.0.11" // MetaInfo stores information on the format of the output itself type MetaInfo struct { @@ -84,8 +84,9 @@ type HypervisorInfo struct { MachineType string Version string Path string - Debug bool BlockDeviceDriver string + Msize9p uint32 + Debug bool } // ProxyInfo stores proxy details @@ -280,6 +281,7 @@ func getHypervisorInfo(config oci.RuntimeConfig) HypervisorInfo { Version: version, Path: hypervisorPath, BlockDeviceDriver: config.HypervisorConfig.BlockDeviceDriver, + Msize9p: config.HypervisorConfig.Msize9p, } } diff --git a/cli/kata-env_test.go b/cli/kata-env_test.go index ee21c0e3d0..f9b2cb2e8b 100644 --- a/cli/kata-env_test.go +++ b/cli/kata-env_test.go @@ -241,6 +241,7 @@ func getExpectedHypervisor(config oci.RuntimeConfig) HypervisorInfo { Path: config.HypervisorConfig.HypervisorPath, MachineType: config.HypervisorConfig.HypervisorMachineType, BlockDeviceDriver: config.HypervisorConfig.BlockDeviceDriver, + Msize9p: config.HypervisorConfig.Msize9p, } }