Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
device: fix the issue of passing wrong device address using virtio-blk
Browse files Browse the repository at this point in the history
Kata agent expects the pci address to be passed and not the
virtPath in guest.

Fixes: #831

Signed-off-by: fupan <[email protected]>
  • Loading branch information
lifupan committed Oct 17, 2018
1 parent d00742f commit b72a3cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtcontainers/kata_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ func (k *kataAgent) handleBlockVolumes(c *Container) []*grpc.Storage {
}
if c.sandbox.config.HypervisorConfig.BlockDeviceDriver == VirtioBlock {
vol.Driver = kataBlkDevType
vol.Source = blockDrive.VirtPath
vol.Source = blockDrive.PCIAddr
} else {
vol.Driver = kataSCSIDevType
vol.Source = blockDrive.SCSIAddr
Expand Down

0 comments on commit b72a3cd

Please sign in to comment.