Skip to content

Commit 1fe6983

Browse files
committed
Add Devpath to LinuxDevice for different dev path on host and container
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]>
1 parent 614e345 commit 1fe6983

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

specs-go/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,8 @@ type LinuxResources struct {
398398
type LinuxDevice struct {
399399
// Path to the device.
400400
Path string `json:"path"`
401+
// Path of passed-through device on host
402+
Devpath string `json:"devpath"`
401403
// Device type, block, char, etc.
402404
Type string `json:"type"`
403405
// Major is the device's major number.

0 commit comments

Comments
 (0)