mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-09 11:58:16 +00:00
linter: make maligned linter happy
maligned linter was complaining about the size of the struct. So move fields around to pack the struct better. Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
parent
cc61ccf9e9
commit
c06af5f5cd
@ -85,15 +85,15 @@ type hypervisor struct {
|
|||||||
DefaultVCPUs int32 `toml:"default_vcpus"`
|
DefaultVCPUs int32 `toml:"default_vcpus"`
|
||||||
DefaultMemSz uint32 `toml:"default_memory"`
|
DefaultMemSz uint32 `toml:"default_memory"`
|
||||||
DefaultBridges uint32 `toml:"default_bridges"`
|
DefaultBridges uint32 `toml:"default_bridges"`
|
||||||
DisableBlockDeviceUse bool `toml:"disable_block_device_use"`
|
Msize9p uint32 `toml:"msize_9p"`
|
||||||
BlockDeviceDriver string `toml:"block_device_driver"`
|
BlockDeviceDriver string `toml:"block_device_driver"`
|
||||||
|
DisableBlockDeviceUse bool `toml:"disable_block_device_use"`
|
||||||
MemPrealloc bool `toml:"enable_mem_prealloc"`
|
MemPrealloc bool `toml:"enable_mem_prealloc"`
|
||||||
HugePages bool `toml:"enable_hugepages"`
|
HugePages bool `toml:"enable_hugepages"`
|
||||||
Swap bool `toml:"enable_swap"`
|
Swap bool `toml:"enable_swap"`
|
||||||
Debug bool `toml:"enable_debug"`
|
Debug bool `toml:"enable_debug"`
|
||||||
DisableNestingChecks bool `toml:"disable_nesting_checks"`
|
DisableNestingChecks bool `toml:"disable_nesting_checks"`
|
||||||
EnableIOThreads bool `toml:"enable_iothreads"`
|
EnableIOThreads bool `toml:"enable_iothreads"`
|
||||||
Msize9p uint32 `toml:"msize_9p"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type proxy struct {
|
type proxy struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user