diff --git a/device.go b/device.go index ffcc709f41..c03b7f3044 100644 --- a/device.go +++ b/device.go @@ -101,7 +101,7 @@ func getDevicePCIAddress(pciID string) (string, error) { return bridgeDevicePCIAddr, nil } -func getBlockDeviceNodeName(s *sandbox, pciID string) (string, error) { +func getPCIDeviceName(s *sandbox, pciID string) (string, error) { pciAddr, err := getDevicePCIAddress(pciID) if err != nil { return "", err @@ -157,7 +157,7 @@ func getBlockDeviceNodeName(s *sandbox, pciID string) (string, error) { // while deviceAddr is the address at which the device is attached on the bridge. func virtioBlkDeviceHandler(device pb.Device, spec *pb.Spec, s *sandbox) error { // Get the device node path based on the PCI device address - devPath, err := getBlockDeviceNodeName(s, device.Id) + devPath, err := getPCIDeviceName(s, device.Id) if err != nil { return err } diff --git a/mount.go b/mount.go index 1a2861915c..801179d88b 100644 --- a/mount.go +++ b/mount.go @@ -220,7 +220,7 @@ func virtio9pStorageHandler(storage pb.Storage, s *sandbox) (string, error) { func virtioBlkStorageHandler(storage pb.Storage, s *sandbox) (string, error) { // Get the device node path based on the PCI address provided // in Storage Source - devPath, err := getBlockDeviceNodeName(s, storage.Source) + devPath, err := getPCIDeviceName(s, storage.Source) if err != nil { return "", err }