diff options
author | Anders F Björklund <anders.f.bjorklund@gmail.com> | 2021-09-22 12:29:28 +0200 |
---|---|---|
committer | Anders F Björklund <anders.f.bjorklund@gmail.com> | 2021-09-22 17:14:16 +0200 |
commit | 0baee2cc33000aa8d311d987308849cb2e8420d9 (patch) | |
tree | 339061aff9814738970f16accd194b0150a89090 /pkg/machine/qemu/machine.go | |
parent | 911298252ad38b040c261a0055931795f19b222b (diff) | |
download | podman-0baee2cc33000aa8d311d987308849cb2e8420d9.tar.gz podman-0baee2cc33000aa8d311d987308849cb2e8420d9.tar.bz2 podman-0baee2cc33000aa8d311d987308849cb2e8420d9.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 9dfdacb09..a125506a1 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 |