runtime: device: cleanup outdated comments

Prior device config move didn't update the comments. Let's address this,
and make sure comments match the new path...

Signed-off-by: Eric Ernst <eric_ernst@apple.com>
This commit is contained in:
Eric Ernst 2022-06-27 10:30:35 -07:00
parent 5f936f268f
commit e5be5cb086
2 changed files with 3 additions and 3 deletions

View File

@ -444,7 +444,7 @@ func getVhostUserDevName(dirname string, majorNum, minorNum uint32) (string, err
// DeviceState is a structure which represents host devices // DeviceState is a structure which represents host devices
// plugged to a hypervisor, one Device can be shared among containers in POD // plugged to a hypervisor, one Device can be shared among containers in POD
// Refs: virtcontainers/device/drivers/generic.go:GenericDevice // Refs: pkg/device/drivers/generic.go:GenericDevice
type DeviceState struct { type DeviceState struct {
// DriverOptions is specific options for each device driver // DriverOptions is specific options for each device driver
// for example, for BlockDevice, we can set DriverOptions["block-driver"]="virtio-blk" // for example, for BlockDevice, we can set DriverOptions["block-driver"]="virtio-blk"
@ -459,7 +459,7 @@ type DeviceState struct {
ID string ID string
// Type is used to specify driver type // Type is used to specify driver type
// Refs: virtcontainers/device/config/config.go:DeviceType // Refs: pkg/device/config/config.go:DeviceType
Type string Type string
// Type of device: c, b, u or p // Type of device: c, b, u or p

View File

@ -26,7 +26,7 @@ const (
) )
var ( var (
pmemLog = logrus.WithField("source", "virtcontainers/device/config") pmemLog = logrus.WithField("source", "pkg/device/config")
) )
// SetLogger sets up a logger for this pkg // SetLogger sets up a logger for this pkg