Commit 610a2d13 authored by Mahmood Ali's avatar Mahmood Ali
Browse files

Use mounts in example device

parent 5cd339d9
Showing with 4 additions and 4 deletions
+4 -4
......@@ -265,10 +265,10 @@ func (d *FsDevice) Reserve(deviceIDs []string) (*device.ContainerReservation, er
}
// Add a mount
resp.Devices = append(resp.Devices, &device.DeviceSpec{
TaskPath: fmt.Sprintf("/dev/%s", id),
HostPath: filepath.Join(d.deviceDir, id),
CgroupPerms: "rw",
resp.Mounts = append(resp.Mounts, &device.Mount{
TaskPath: fmt.Sprintf("/tmp/device-mounts/%s", id),
HostPath: filepath.Join(d.deviceDir, id),
ReadOnly: false,
})
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment