mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-05 19:47:53 +00: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:
parent
affd6e3216
commit
e599ef430a
@ -53,7 +53,7 @@ type DeviceInfo struct {
|
||||
HostPath string
|
||||
|
||||
// ContainerPath is device path inside container
|
||||
ContainerPath string
|
||||
ContainerPath string `json:"-"`
|
||||
|
||||
// Type of device: c, b, u or p
|
||||
// c , u - character(unbuffered)
|
||||
|
Loading…
Reference in New Issue
Block a user