Skip to content

Commit

Permalink
vcsim: Fix StorageIOAllocationInfo of VirtualDisk
Browse files Browse the repository at this point in the history
Closes: vmware#2904
Signed-off-by: syuparn <s.hello.spagetti@gmail.com>
  • Loading branch information
Syuparn committed Jul 19, 2022
1 parent 87e10de commit 61032a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions simulator/model.go
Expand Up @@ -556,6 +556,7 @@ func (m *Model) Create() error {
disk := devices.CreateDisk(scsi.(types.BaseVirtualController), ds,
config.Files.VmPathName+" "+path.Join(name, "disk1.vmdk"))
disk.CapacityInKB = int64(units.GB*10) / units.KB
disk.StorageIOAllocation = &types.StorageIOAllocationInfo{Limit: types.NewInt64(-1)}

devices = append(devices, scsi, cdrom, disk, &nic)

Expand Down

0 comments on commit 61032a2

Please sign in to comment.