mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-23 09:14:27 +01:00
device: don't persist ContainerPath of DeviceInfo
Fixes #635 `ContainerPath` isn't meaningful in sandbox's `devices.json`, because device is sandbox level which can be referenced by many containers, and `ContainerPath` is per container which means nothing to a sandbox level resource. Signed-off-by: Wei Zhang <zhangwei555@huawei.com>
This commit is contained in:
@@ -53,7 +53,7 @@ type DeviceInfo struct {
|
|||||||
HostPath string
|
HostPath string
|
||||||
|
|
||||||
// ContainerPath is device path inside container
|
// ContainerPath is device path inside container
|
||||||
ContainerPath string
|
ContainerPath string `json:"-"`
|
||||||
|
|
||||||
// Type of device: c, b, u or p
|
// Type of device: c, b, u or p
|
||||||
// c , u - character(unbuffered)
|
// c , u - character(unbuffered)
|
||||||
|
|||||||
Reference in New Issue
Block a user