mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-31 12:14:27 +01:00
device: add GetHostPath() to generic device
`GetHostPath()` method returns the device path in the host, this way the runtime can get the device information for updating the sandbox's device cgroup. Signed-off-by: Julio Montes <julio.montes@intel.com> Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
@@ -56,6 +56,9 @@ type Device interface {
|
||||
// GetMajorMinor returns major and minor numbers
|
||||
GetMajorMinor() (int64, int64)
|
||||
|
||||
// GetHostPath return the device path in the host
|
||||
GetHostPath() string
|
||||
|
||||
// GetDeviceInfo returns device specific data used for hotplugging by hypervisor
|
||||
// Caller could cast the return value to device specific struct
|
||||
// e.g. Block device returns *config.BlockDrive,
|
||||
|
||||
Reference in New Issue
Block a user