diff options
author | Anders F Björklund <anders.f.bjorklund@gmail.com> | 2021-09-22 12:29:28 +0200 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2021-09-29 16:39:29 -0400 |
commit | da67c719980ed7e64e168f74b01a2d9105c0b9d0 (patch) | |
tree | 01edef04d6a28ebed8ac91e63f175ced449c8a4d /pkg/machine/qemu/machine.go | |
parent | 2c5382ba981217ef751649302ad15ecd493a6e90 (diff) | |
download | podman-da67c719980ed7e64e168f74b01a2d9105c0b9d0.tar.gz podman-da67c719980ed7e64e168f74b01a2d9105c0b9d0.tar.bz2 podman-da67c719980ed7e64e168f74b01a2d9105c0b9d0.zip |
Also show the (initial) disk size
[NO TESTS NEEDED]
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Diffstat (limited to 'pkg/machine/qemu/machine.go')
-rw-r--r-- | pkg/machine/qemu/machine.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go index 281a8b7a9..d0f48da5f 100644 --- a/pkg/machine/qemu/machine.go +++ b/pkg/machine/qemu/machine.go @@ -64,6 +64,7 @@ func NewMachine(opts machine.InitOptions) (machine.VM, error) { vm.CPUs = opts.CPUS vm.Memory = opts.Memory + vm.DiskSize = opts.DiskSize // Look up the executable execPath, err := exec.LookPath(QemuCommand) @@ -576,6 +577,7 @@ func GetVMInfos() ([]*machine.ListResponse, error) { listEntry.VMType = "qemu" listEntry.CPUs = vm.CPUs listEntry.Memory = vm.Memory + listEntry.DiskSize = vm.DiskSize fi, err := os.Stat(fullPath) if err != nil { return err |