mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-04 11:06:21 +00:00
device: fix the issue of passing wrong device address using virtio-blk
Kata agent expects the pci address to be passed and not the virtPath in guest. Fixes: #831 Signed-off-by: fupan <lifupan@gmail.com>
This commit is contained in:
parent
d00742f43f
commit
b72a3cdcce
@ -1073,7 +1073,7 @@ func (k *kataAgent) handleBlockVolumes(c *Container) []*grpc.Storage {
|
|||||||
}
|
}
|
||||||
if c.sandbox.config.HypervisorConfig.BlockDeviceDriver == VirtioBlock {
|
if c.sandbox.config.HypervisorConfig.BlockDeviceDriver == VirtioBlock {
|
||||||
vol.Driver = kataBlkDevType
|
vol.Driver = kataBlkDevType
|
||||||
vol.Source = blockDrive.VirtPath
|
vol.Source = blockDrive.PCIAddr
|
||||||
} else {
|
} else {
|
||||||
vol.Driver = kataSCSIDevType
|
vol.Driver = kataSCSIDevType
|
||||||
vol.Source = blockDrive.SCSIAddr
|
vol.Source = blockDrive.SCSIAddr
|
||||||
|
Loading…
Reference in New Issue
Block a user