Skip to content

Commit

Permalink
Add Devpath to LinuxDevice for different dev path on host and container
Browse files Browse the repository at this point in the history
This extension of LinuxDevice adds support for making a device available
under a different path than it is seen on the host. The device path
on the host may for example be /dev/foo and it may be made available under
/dev/bar inside a container.

Signed-off-by: Stefan Berger <[email protected]>
  • Loading branch information
stefanberger committed Jul 6, 2020
1 parent 32f2dc9 commit 4621d9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions specs-go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,8 @@ type LinuxResources struct {
type LinuxDevice struct {
// Path to the device.
Path string `json:"path"`
// Path of passed-through device on host
Devpath string `json:"devpath"`
// Device type, block, char, etc.
Type string `json:"type"`
// Major is the device's major number.
Expand Down

0 comments on commit 4621d9a

Please sign in to comment.